Ritualistic Forums

Go Back   Ritualistic Forums > Ritual Entertainment Games > SiN Episodes > SiN Episodes Editing

Reply
 
Thread Tools Display Modes
Old 07-28-2006, 12:46 PM   #1
Xpiredperson
Experienced
 
Xpiredperson's Avatar
 
Join Date: May 2006
Location: Under the Stairs :)
Posts: 146
Default Entity Help

Hey, ive just started to learn how to use SDK so far im okay with it i can spawn NPCs, Props, Weapons etc..But im having trouble.
I wanna make the NPCs Attack as soon as they spawn so they go straight for the player, (all they do at the Mo is stand about until i walk up to em) I want them to attack as soon as they spawn even if they are a fair distance away.

Anyone tell me how to do this? Please and thanks
Xpiredperson is offline   Reply With Quote
Old 07-28-2006, 12:55 PM   #2
wisecode
Experienced
 
wisecode's Avatar
 
Join Date: May 2006
Location: Tennessee U.S.A.
Posts: 134
Send a message via MSN to wisecode
Default Re: Entity Help

ai_relationship
Subject: npc_enemyfinder
Target: !player
Disposition: Hate
Start active: Yes

npc_enemyfinder
(Check the flags and properties)
Give it a Squad and Start on.

Flag "Think outside PVS" if you want the NPCs to see around corners, have extended senses.
wisecode is offline   Reply With Quote
Old 07-28-2006, 01:12 PM   #3
Xpiredperson
Experienced
 
Xpiredperson's Avatar
 
Join Date: May 2006
Location: Under the Stairs :)
Posts: 146
Default Re: Entity Help

Okay ive done that, the Entities see me but they still just stand there. Is there something more i should do?

Last edited by Xpiredperson : 07-28-2006 at 01:33 PM.
Xpiredperson is offline   Reply With Quote
Old 07-28-2006, 01:34 PM   #4
MeatPuppet
Level Designer
 
Join Date: May 2004
Posts: 123
Default Re: Entity Help

The npc needs to be in the same squad as the enemy finder. Also, NPCs won't atack the player if there is no path nodes for them to use to navigate. If there are no path nodes they will only atatck if you get close enough and they have line of sight.
You can also use a scripted sentence that tells that NPC to set its goal entity as the player and to run to the player.
MeatPuppet is offline   Reply With Quote
Old 07-28-2006, 02:40 PM   #5
Xpiredperson
Experienced
 
Xpiredperson's Avatar
 
Join Date: May 2006
Location: Under the Stairs :)
Posts: 146
Default Re: Entity Help

Sorry to be a major noob but can someone post an example or really dumb it down for me
Xpiredperson is offline   Reply With Quote
Old 07-28-2006, 03:17 PM   #6
BloodShed
Regular
 
BloodShed's Avatar
 
Join Date: Apr 2006
Location: Denmark
Posts: 90
Send a message via ICQ to BloodShed Send a message via AIM to BloodShed Send a message via MSN to BloodShed
Default Re: Entity Help

Did you remember to place info_nodes?
http://developer.valvesoftware.com/wiki/Info_node

--------------------
Babes, Bullets, Bombs. DAMN I love this job!
BloodShed is offline   Reply With Quote
Old 07-28-2006, 05:26 PM   #7
Xpiredperson
Experienced
 
Xpiredperson's Avatar
 
Join Date: May 2006
Location: Under the Stairs :)
Posts: 146
Default Re: Entity Help

Alright! I got it to work.
Loads of thanks for the help guys ^_^
Xpiredperson is offline   Reply With Quote
Old 07-28-2006, 05:43 PM   #8
wisecode
Experienced
 
wisecode's Avatar
 
Join Date: May 2006
Location: Tennessee U.S.A.
Posts: 134
Send a message via MSN to wisecode
Default Re: Entity Help

Good job.
Something you may want to experiment with at times is replacing info_node entities with info_node_hint.
They're like info_node's with AI triggers.

Illustrated here to make Alyx run the Gauntlet:
http://www.sdknuts.com/tutorials/wiseNPC03.asp

p.s. The guys at Ritual will slap me for bringing this up but has anyone noticed now that the SDK is out that Jessica is a modified Alyx?
wisecode is offline   Reply With Quote
Old 07-28-2006, 06:07 PM   #9
Michael_Russell
Roaming QA Ronin
 
Michael_Russell's Avatar
 
Join Date: Dec 2004
Location: Dallas, TX
Posts: 887
Default Re: Entity Help

Why would we slap you? Alyx was a skeletal basis (we had permission), but there's a lot of new behavior built in.

--------------------
Michael Russell
Coder who tests; Tester who codes
http://www.romsteady.net/
Michael_Russell is offline   Reply With Quote
Old 07-28-2006, 07:02 PM   #10
wisecode
Experienced
 
wisecode's Avatar
 
Join Date: May 2006
Location: Tennessee U.S.A.
Posts: 134
Send a message via MSN to wisecode
Default Re: Entity Help

I didn't mean to understate the great work you guys did.

Several of the Valve guys are friends of mine, I've told them more than once they've got a good attitude about this sort of content sharing, looks like you guys do too.
wisecode is offline   Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 08:11 PM.


Powered by vBulletin® Version 3.6.3
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.