Air only cp

Making or wanting help making your own asset? Check in here
Post Reply
LangMaster
PR:BF2 Contributor
Posts: 176
Joined: 2020-10-11 03:15

Air only cp

Post by LangMaster »

Am i able to make a air only capture point in coop gamemode ? i mean is it even possible ?
AlonTavor
PR:BF2 Developer
Posts: 2991
Joined: 2009-08-10 18:58

Re: Air only cp

Post by AlonTavor »

The filtering is done in Python, you can't do it easily without modifying our python.
LangMaster
PR:BF2 Contributor
Posts: 176
Joined: 2020-10-11 03:15

Re: Air only cp

Post 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 :)
AlonTavor
PR:BF2 Developer
Posts: 2991
Joined: 2009-08-10 18:58

Re: Air only cp

Post 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
LangMaster
PR:BF2 Contributor
Posts: 176
Joined: 2020-10-11 03:15

Re: Air only cp

Post 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 ?
AlonTavor
PR:BF2 Developer
Posts: 2991
Joined: 2009-08-10 18:58

Re: Air only cp

Post 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.
LangMaster
PR:BF2 Contributor
Posts: 176
Joined: 2020-10-11 03:15

Re: Air only cp

Post 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.
AlonTavor
PR:BF2 Developer
Posts: 2991
Joined: 2009-08-10 18:58

Re: Air only cp

Post 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.
LangMaster
PR:BF2 Contributor
Posts: 176
Joined: 2020-10-11 03:15

Re: Air only cp

Post 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.
X0R
Posts: 8
Joined: 2020-02-15 13:10

Re: Air only cp

Post 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.
Post Reply

Return to “PR:BF2 Community Modding”