This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

How To: Make a perfect NPC


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
qlail
Member
Join Date: Aug 2009
Old 01-19-2012 , 13:35   Re: How To: Make a perfect NPC
Reply With Quote #1

Can you add how to make it to where you can spawn the npc where you're looking to?
qlail is offline
Devil259
Veteran Member
Join Date: Dec 2009
Location: France (59)
Old 01-19-2012 , 15:04   Re: How To: Make a perfect NPC
Reply With Quote #2

Use get_user_origin( ) and modify the Z origin, then spawn it.
__________________
You can do anything you set your mind to, man.

Devil259 is offline
usaexelent
Senior Member
Join Date: Nov 2009
Location: Lithuania
Old 11-19-2012 , 10:26   Re: How To: Make a perfect NPC
Reply With Quote #3

How do you make npc turn to target with speed? Like not at once but litte by little.
__________________
and once again
usaexelent is offline
Send a message via Skype™ to usaexelent
DSASDFGH
Senior Member
Join Date: Jul 2011
Location: Facebook
Old 11-22-2012 , 03:07   Re: How To: Make a perfect NPC
Reply With Quote #4

Maybe this code will give some functions to NPC Takedamage / Killed

PHP Code:
RegisterHam(Ham_TraceAttack"info_target""fw_TraceAttack"// For making blood
RegisterHam(Ham_TakeDamage"info_target""fw_TakeDamage"// For take damage
RegisterHam(Ham_Killed"info_target""fw_NPCKilled"// For hook npc has killed. 
__________________
Learning SourceMod is happy
DSASDFGH is offline
danonix
Senior Member
Join Date: Dec 2012
Old 03-10-2013 , 14:34   Re: How To: Make a perfect NPC
Reply With Quote #5

How I can set up it with this code on ground?
danonix is offline
Ardonicek
Senior Member
Join Date: Feb 2013
Location: My home
Old 01-12-2014 , 07:36   Re: How To: Make a perfect NPC
Reply With Quote #6

How to set it up to make it spawn every map on selected coords? O.o
__________________
Latest plugin: dHUD Round | Timeleft
Ardonicek is offline
Send a message via ICQ to Ardonicek Send a message via Skype™ to Ardonicek
MegasToRM
Member
Join Date: May 2012
Location: Serbia
Old 01-12-2014 , 11:01   Re: How To: Make a perfect NPC
Reply With Quote #7

Quote:
Originally Posted by Ardonicek View Post
How to set it up to make it spawn every map on selected coords? O.o
Easy to do. Just write x,y,z coordinates in a file(cfg,txt,ini,any other extension you like...),and in plugin_init or plugin_cfg(or just before spawning npc) you can parse those values,and use them as coordinates for spawning an entity.

Last edited by MegasToRM; 01-12-2014 at 11:12.
MegasToRM is offline
Send a message via MSN to MegasToRM Send a message via Skype™ to MegasToRM
matsi
Thinkosaur
Join Date: Sep 2006
Old 01-13-2014 , 10:04   Re: How To: Make a perfect NPC
Reply With Quote #8

Quote:
Originally Posted by Ardonicek View Post
How to set it up to make it spawn every map on selected coords? O.o
Quote:
Originally Posted by MegasToRM View Post
Easy to do. Just write x,y,z coordinates in a file(cfg,txt,ini,any other extension you like...),and in plugin_init or plugin_cfg(or just before spawning npc) you can parse those values,and use them as coordinates for spawning an entity.
If you have issues with that you can check this topic.
__________________

Accepting all kinds of requests via private message.
matsi is offline
Old 01-23-2014, 16:38
Ardonicek
This message has been deleted by Ardonicek. Reason: Solved
Ardonicek
Senior Member
Join Date: Feb 2013
Location: My home
Old 02-26-2014 , 15:37   Re: How To: Make a perfect NPC
Reply With Quote #10

Guys, how to make that NPC follow players and trying to kill them? If it's possible, paste the code here, please.
__________________
Latest plugin: dHUD Round | Timeleft
Ardonicek is offline
Send a message via ICQ to Ardonicek Send a message via Skype™ to Ardonicek
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:55.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode