project reality header
Go Back   Project Reality Forums > PR:BF2 Mod Forums > PR:BF2 Community Modding
17 Jun 2021, 00:00:00 (PRT)
Register Developer Blogs Project Reality Members List Search Today's Posts Mark Forums Read
PR:BF2 Community Modding Making or wanting help making your own asset? Check in here

Reply
 
Thread Tools Display Modes
Old 2021-04-19, 20:22   #1
LangMaster

LangMaster's Avatar
Question Air only cp

Am i able to make a air only capture point in coop gamemode ? i mean is it even possible ?
LangMaster is offline Reply With Quote
Old 2021-04-19, 21:45   #2
[R-DEV]​AlonTavor
PR:BF2 Developer
PR Server License Administrator
Default Re: Air only cp

The filtering is done in Python, you can't do it easily without modifying our python.
AlonTavor is offline Reply With Quote
Old 2021-04-20, 02:16   #3
LangMaster

LangMaster's Avatar
Default 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
LangMaster is offline Reply With Quote
Old 2021-04-20, 08:35   #4
[R-DEV]​AlonTavor
PR:BF2 Developer
PR Server License Administrator
Default Re: Air only cp

quick hack that should work, didn't test.
Code:
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
AlonTavor is offline Reply With Quote
Old 2021-04-20, 16:02   #5
LangMaster

LangMaster's Avatar
Default Re: Air only cp

Quote:
Originally Posted by AlonTavor View Post
quick hack that should work, didn't test.
Code:
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 ?
LangMaster is offline Reply With Quote
Old 2021-04-20, 16:21   #6
[R-DEV]​AlonTavor
PR:BF2 Developer
PR Server License Administrator
Default 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.
AlonTavor is offline Reply With Quote
Old 2021-04-20, 16:43   #7
LangMaster

LangMaster's Avatar
Default 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.
LangMaster is offline Reply With Quote
Old 2021-04-20, 16:47   #8
[R-DEV]​AlonTavor
PR:BF2 Developer
PR Server License Administrator
Default 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.
AlonTavor is offline Reply With Quote
Old 2021-04-20, 16:54   #9
LangMaster

LangMaster's Avatar
Default 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.
LangMaster is offline Reply With Quote
Old 2021-04-21, 13:55   #10
X0R
Default Re: Air only cp

Quote:
Originally Posted by AlonTavor View Post
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.
X0R is offline Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT. The time now is 18:33.