lil' exploit to my map :(!


(mazdaplz) #1

i have everything up and running with my lvl, but there is this exploit where:

the level’s 2 spawnflags are first controlled by the axis. but when you select axis and one flag, and then just press the allies button you will spawn in an axis spawn but being allied. and this can even happen when the warmup ends
or at any given time in the match

EDIT:
heres the script

/////////////////////////////////////////////

cp1
{
spawn
{
wait 50
accum 0 set 0
alertentity theflag // the spawns connected to the tm_wolf_chkpt 1
setautospawn “maingate” 0
}
trigger axis_capture
{
accum 0 abort_if_equal 0
accum 0 set 0
alertentity marker // the team_wolf_obj relevant for spawns1
alertentity theflag
setautospawn “maingate” 0
}

trigger allied_capture
{
accum 0 abort_if_equal 1
accum 0 set 1
alertentity marker
alertentity theflag
setautospawn “maingate” 1
accum 2 abort_if_equal 1
accum 2 set 0
alertentity marker2
alertentity theflag2
setautospawn “courtyard” 0 //so that axis appear at the next spawn
}
}

////////////////////////////

cp2
{
spawn
{
wait 60
accum 2 set 0
alertentity theflag2
setautospawn “courtyard” 0
setautospawn “maingate” 0 //so they spawn first on the maingate
}
trigger axis_capture
{
accum 2 abort_if_equal 0
accum 2 set 0
alertentity marker2
alertentity theflag2
setautospawn “courtyard” 0
}

trigger allied_capture
{
accum 2 abort_if_equal 1
accum 2 abort_if_equal -1
accum 2 set 1
alertentity marker2
alertentity theflag2
setautospawn “courtyard” 1
}
}


(kamikazee) #2

Check the script of some other map, I believe you need to make the team_wolf_objective invisible using the setstate statement.


(mazdaplz) #3

i dont get it. if it were invisible it would not be spawnable by any team, and i recall seeing maps where the axis could select their spawn and the allies couldnt select those same spots :?

can you setstate something invisible just for team1?

can i do something like allowteams, which i use for buttons and doors

im gonna try to find some map files from other maps thanks


(ayatollah) #4

Look at the Goldrush script, the Allies cannot select the second spawn until they steal the tank. There your answer will be…(can’t handhold through whole process mate!)


(mazdaplz) #5

i tried but the goldrush script is HUGE and it’s so confusing, even when commented appropiately. so i made a little research and im going to try with global accums… maybe i can make it work with those


(kamikazee) #6

Seems I was wrong; it’s true that you don’t need to set it invisible in this case.

Accums shouldn’t be the problem as long as you’re not trying to access them from another entity. (Which isn’t possible, unless for globalaccums.)

I’ll see if I can correctly remember how it’s really done. But as you said, it doesn’t hurt to take a look at some other maps.


(mazdaplz) #7

finally it paid off i looked at goldrush again, and i solved it:
in case anyone wants to know…

the axis spawns and allied spawns should have diff targetnames, but same id


(SCDS_reyalP) #8

the id field isn’t used at all.