Page 1 of 1
Air only cp
Posted: 2021-04-19 20:22
by LangMaster
Am i able to make a air only capture point in coop gamemode ? i mean is it even possible ?
Re: Air only cp
Posted: 2021-04-19 21:45
by AlonTavor
The filtering is done in Python, you can't do it easily without modifying our python.
Re: Air only cp
Posted: 2021-04-20 02:16
by LangMaster
alright that is what i needed to know, i saw the code but i was just hoping there is a way to bypass it in init file with some line

Re: Air only cp
Posted: 2021-04-20 08:35
by AlonTavor
quick hack that should work, didn't test.
Code: Select all
import realitytriggers
original = realitytriggers.createTrigger
def new(obj, callback=None, radius=100, team=3, ignoreFlyingVehicles=False, data=None, isHemisphere=False, ignoreKits=[]):
return original(obj, callback, radius, team, False, data, isHemisphere, ignoreKits)
realitytriggers.createTrigger = new
Re: Air only cp
Posted: 2021-04-20 16:02
by LangMaster
AlonTavor wrote:quick hack that should work, didn't test.
Code: Select all
import realitytriggers
original = realitytriggers.createTrigger
def new(obj, callback=None, radius=100, team=3, ignoreFlyingVehicles=False, data=None, isHemisphere=False, ignoreKits=[]):
return original(obj, callback, radius, team, False, data, isHemisphere, ignoreKits)
realitytriggers.createTrigger = new
i think i was trying out the ignoreflyingvehicles command, i am not 100% sure if i did it right neither if i put it into the right file, should i put this into the gameobjects under the control point it self or init file ?
Re: Air only cp
Posted: 2021-04-20 16:21
by AlonTavor
Python goes in python/game/__init__.py on the server.
This isn't for maps. We don't have a per-map setting for this.
If you can't do python, don't bother.
Re: Air only cp
Posted: 2021-04-20 16:43
by LangMaster
oh okay, yeah i was reading that this can be only used in passworded servers due to license. i wanted to put it into the coop adak and make it more official, thanks for the idea tho.
Re: Air only cp
Posted: 2021-04-20 16:47
by AlonTavor
I mean, we could add an option if you think its really needed, but CPs for flying outside of vehicle warfare don't make much sense.
Re: Air only cp
Posted: 2021-04-20 16:54
by LangMaster
Well coop is coop man and we like some unique stuff, we tend to play alot of event maps in VG and the more the maps are unique the more it is fun, i know you guys don't tend to really care about coop and i can tell by me trying to fix black gold large coop that does not work at all in official map gallery so i made my own large layer that is working absolutely fine but i got 0 replies on the post so i dunno who am i suppose to ask for the fix.
Re: Air only cp
Posted: 2021-04-21 13:55
by X0R
AlonTavor wrote:I mean, we could add an option if you think its really needed, but CPs for flying outside of vehicle warfare don't make much sense.
That would be a welcome addition if you'd please, thanks.