Hey, Wazanator.  Here's a vmf with a hostage entity that uses a script to 
determine when the hostage has died.  The hostage entity doesn't have a 
vscripts entry in the fgd, but you can add one manually like I did in the 
attached vmf.  The .nut script should go in "csgo\scripts\vscripts\Hostage".

Good luck!


From: [email protected] 
[mailto:[email protected]] On Behalf Of Jesse Oak
Sent: Sunday, February 17, 2013 5:37 PM
To: [email protected]
Subject: [Csgo_sdk] vscripts and hostages

I'm trying to setup a custom gamemode where the terrorists must kill a set of 
VIP's (hostage NPC's)  that the CT's are protecting in order to win. Seeing as 
the hostages have no OnKilled output(or any outputs for that mater) I thought I 
would use vscripts to get the health of them and if it dropped below 1 consider 
them dead. Once they are all dead I would end the round.

Seems simple enough but I've run into a snag it appears the GetHealth function 
that was present in L4D2 for the survivors and SI is not in CSGO for the 
hostages.

So if anyone knows of a way to get the hostage health or an alternative 
workaround let me know.

-Wazanator

Attachment: hostage.vmf
Description: hostage.vmf

Attachment: Hostage.nut
Description: Hostage.nut

_______________________________________________
Csgo_sdk mailing list
[email protected]
https://list.valvesoftware.com/cgi-bin/mailman/listinfo/csgo_sdk

Reply via email to