Air only cp
-
- PR:BF2 Contributor
- Posts: 176
- Joined: 2020-10-11 03:15
Air only cp
Am i able to make a air only capture point in coop gamemode ? i mean is it even possible ?
-
- PR:BF2 Developer
- Posts: 2991
- Joined: 2009-08-10 18:58
Re: Air only cp
The filtering is done in Python, you can't do it easily without modifying our python.
-
- PR:BF2 Contributor
- Posts: 176
- Joined: 2020-10-11 03:15
Re: Air only cp
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 ![Smile :)](./images/smilies/icon_e_smile.gif)
![Smile :)](./images/smilies/icon_e_smile.gif)
-
- PR:BF2 Developer
- Posts: 2991
- Joined: 2009-08-10 18:58
Re: Air only cp
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
-
- PR:BF2 Contributor
- Posts: 176
- Joined: 2020-10-11 03:15
Re: Air only cp
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 ?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
-
- PR:BF2 Developer
- Posts: 2991
- Joined: 2009-08-10 18:58
Re: Air only cp
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.
This isn't for maps. We don't have a per-map setting for this.
If you can't do python, don't bother.
-
- PR:BF2 Contributor
- Posts: 176
- Joined: 2020-10-11 03:15
Re: Air only cp
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.
-
- PR:BF2 Developer
- Posts: 2991
- Joined: 2009-08-10 18:58
Re: Air only cp
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.
-
- PR:BF2 Contributor
- Posts: 176
- Joined: 2020-10-11 03:15
Re: Air only cp
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.
-
- Posts: 8
- Joined: 2020-02-15 13:10
Re: Air only cp
That would be a welcome addition if you'd please, thanks.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.