rated explosion kill

rated explosion kill

Re: rated explosion kill Posted by Kampy on Thu Oct 6th 2011 at 11:27am
Kampy
304 posts
Posted 2011-10-06 11:27am
Kampy
member
304 posts 716 snarkmarks Registered: Dec 30th 2003 Occupation: student Location: Germany
In my new map (CS:S) there are several trigger_hurt or explosions that can be triggered by the user. Is it somehow possible to give the player credit for kills he did with those functions? Like when using the tank cannon it should say TankPlayer ---> DeadPlayer and give TankPlayer a kill. Any ideas?
Re: rated explosion kill Posted by omegaslayer on Mon Oct 10th 2011 at 2:42pm
omegaslayer
2481 posts
Posted 2011-10-10 2:42pm
2481 posts 595 snarkmarks Registered: Jan 16th 2004 Occupation: Sr. DevOPS Engineer Location: Seattle, WA
May want to have a look at the Game Score entity. You can target the player by using the !activator target name (whom ever activated the entity).

Set up a game_score entity the name "score_ent" (and set values accordingly)

Have a trigger multiple grab whomever activated the explosions (by button, or trigger) - you could have a disabled trigger quickly enabled after you hit a button to make the OnTrigger effect go through, then diable it right after to prevent people from just stepping in the trigger zone to get a high score. Have the trigger_multiple have an output of:

MyOutput: OnTrigger (or whatever its called)
Target Entity: "score_ent" (or whatever you called the game_score entity by name)
Target Input: ApplyScore
Parameter: !activator

This in theory will tell the game_score entity to add a score to whomever activated the trigger_multiple.