Usage of game_score with CTF

  • If you're asking a question make sure to set the thread type to be a question!

Wiebbe

L1: Registered
Dec 25, 2007
49
4
Well, i am still working on my King of the hill hybrid + CTF. But i have some issues with the scoring.

I use a flag on invade to make sure there is a timer when its dropped so you cant do a quickcap when the enemy drops the flag near the capture point. The problem is that a team point is given to the capturing team.

Now what i wanted to do was remove that point with game_score on -1 and with the flags Team Score and Allow Negative points on.

To test this, i made a trigger_multiple which triggers with a OnStartTouch and does a ApplyScore to game_score. When i run over the trigger, it does the proper thing, it removed a point.

But, when i do the same with either the flag or the capturezone, nothing happens! I place the line like this with the flag:

OnCapture -> game_score ApplyScore -> Delay 0.00 (or 3.00 doesnt matter either way)

I placed the same on the capturezone but still the point just gets added and nothing else happens. Anyone know what i am doing wrong or something to fix it?
 

DrHaphazard

L5: Dapper Member
Jan 6, 2008
249
12
Hmm i don think should work, but might give it a shot anyways.

In your OnCapture command from the flag, add a -1 in the parameters field.

So would be:

OnCapture > game_score > ApplyScore > -1 > Delay 0.00

You might also wanna try simply tricking it. If you could get a trigger to work to set the score, perhaps have the OnCapture trigger a trigger that will set the score for you. Convoluted I know but it just might work.
 
G

greenridge

CTF and CP dont mix. if you put a flag in your map the cp portion will probably stop working.

try testing it without any outputs and see if it does what you want. my guess is that it wont
 

Wiebbe

L1: Registered
Dec 25, 2007
49
4
CTF and CP mix quite well, so you are mistaken there. I have it completly working, the only thing is the visual aspect of the score when someone caps the invade flag.

If 1 team keeps the team for 5 minutes they win the round regardless of how many points each team have.

It just looks odd if Red team captured the flag 4 times and blue 0 times but still keep the CP for 5 minutes. When they win it just adds 1 point to Blue while it looks like red would have won with 5 points.

Funnily with Invade it wont stop the game after 3 captures while it will do this with CTF mode.
 

Jive Turkey

L3: Member
Jan 22, 2008
120
32
Instead of having the flag trigger a trigger that bumps the score, have the flag enable the trigger that bumps the score. Make a trigger_multiple out of a brush surrounding your capture area. Have it disabled initially, then when the flag is captured, it enables this trigger_multiple, which is then triggered immediately by the player on the point. Then the activator will be a player entity instead of the flag. Feed the game_score, then disable the trigger_multiple for the next time.