Re: npc_zombie
Posted by poisonic on
Thu Feb 23rd 2006 at 6:13pm
78 posts
18 snarkmarks
Registered:
Jun 8th 2005
Hello yesterday i found a sollution for DUMB NPC's....... in HL2DM :biggrin: <br style="color: white;"><br style="color: white;">let me explain a bit :wink: <br style="color: white;"><br style="color: white;">Well, the tutorials I found never really told you how to target the player. I finally figured out how to do it, but it took a few extra steps to get the relationships to trigger. So here is how I got it to work:<br style="color: white;"><br style="color: white;">- Insert an entity called logic_auto<br style="color: white;">- Have an output OnMapSpawn logic_relay trigger<br style="color: white;">- Insert a logic_relay<br style="color: white;">- Have an output OnTrigger logic_timer Enable<br style="color: white;">- Insert a Logic_timer<br style="color: white;">- Have an output OnTimer ai_relationship Apply Relationship<br style="color: white;">- Insert an ai_relationship<br style="color: white;">Subject: NPC_antlionguard<br style="color: white;">Target: !player<br style="color: white;">Start Active: Yes<br style="color: white;">Reciprical: No<br style="color: white;">- Insert an NPC (monster) and name it<br style="color: white;">- Make an output OnDeath Npc_maker spawn<br style="color: white;">- Make another output OnWake Npc_maker Enable<br style="color: white;">- Insert an npc_maker<br style="color: white;">- Make sure the NPC class matches the NPC spawned<br style="color: white;">- Insert Info nodes everywhere you want your NPC to navigate<br style="color: white;"><br style="color: white;">and you are almost ready to GO :smile: <br style="color: white;">the npc will come after you now but cant damage you and if you shoud it 1 to its dead......<br style="color: white;"><br style="color: white;">so we have to make rules like:<br style="color: white;">-How much health does the NPC have<br style="color: white;">-How much damage the NPC can cause to !player<br style="color: white;"><br style="color: white;">for this we need to ad 2 things.....<br style="color: white;"><br style="color: white;">- point_servercommand<br style="color: white;">- point_clientcommand<br style="color: white;"><br style="color: white;">Name then both "client"<br style="color: white;"><br style="color: white;">now we need to go to our logic_auto we need to add the folowing outputs.....<br style="color: white;">my output : onmapspawn <br style="color: white;">target : client<br style="color: white;">target input : command<br style="color: white;">parameter : sk_antlionguard_health 5000<br style="color: white;">delay : 1 second<br style="color: white;"><br style="color: white;">my output : onmapspawn <br style="color: white;">target : client<br style="color: white;">target input : command<br style="color: white;">parameter : sk_antlionguard_dmg_shove 500<br style="color: white;">delay : 1 second<br style="color: white;"><br style="color: white;">my output : onmapspawn <br style="color: white;">target : client<br style="color: white;">target input : command<br style="color: white;">parameter : sk_antlionguard_dmg_charge 500<br style="color: white;">delay : 1 second<br style="color: white;"><br style="color: white;">now we have antlion guard with the folowing specs :wink: <br style="color: white;">Health 5000<br style="color: white;">damage to !player 500 :smile: <br style="color: white;"><br style="color: white;">the Best way for spawning NPC's are after the commands!(using a Trigger_multiple or a button that triggers the NPC_maker to spawn)<br style="color: white;">if an npc spawns earlier then the commands the NPC will have the standard values.......<br style="color: white;">causes no damage and is death in 1 hit<br style="color: white;"><br style="color: white;">good luck and have fun :smile: i hope allot of mappers will be able to create coop maps<html><head><link rel="stylesheet" href="themes/standard.css" type="text/css"></head><body topmargin=2 leftmargin=2>
Re: npc_zombie
Posted by Sam37 on
Thu Feb 23rd 2006 at 6:15pm
Sam37
member
47 posts
5 snarkmarks
Registered:
Dec 15th 2004
Occupation: Student
Location: UK
Havent tested it, but it looks pretty good :smile:
One thing though, shouldn't this be in the tutorials section?
Re: npc_zombie
Posted by poisonic on
Thu Feb 23rd 2006 at 6:18pm
78 posts
18 snarkmarks
Registered:
Jun 8th 2005
You are right :wink:
its more like a tutorial :smile:
Re: npc_zombie
Posted by daz_rich20 on
Mon Feb 27th 2006 at 3:21pm
6 posts
1 snarkmarks
Registered:
May 31st 2005
Occupation: child who only thinks about himself
i made this post so i could find an old topic since i havent being on in a while
but i still would like u to email me the tut so i dont forget