antistasi-1.x icon indicating copy to clipboard operation
antistasi-1.x copied to clipboard

Combining Blufor&Greenfor versions

Open StefArma opened this issue 7 years ago • 3 comments

Currently there are 2 sqm in the folder in order to play against AAF/VDV (blufor default version) or against NATO/USMC (greenfor version).

Detect_RHS.sqf checks if Petros is blufor or greenfor to perform the switch, so, basically, right now it's required to change classobject of petros, player and playable units in order to play the greenfor version, and that's why another .sqm

I'd love to have an option where you can choose to play one or another within the same .sqm

StefArma avatar Oct 02 '17 15:10 StefArma

Am I reading that correctly as you saying that all you'd need to do is change how Petros, player and playable units are spawned and that would trigger all the other changes?

If so you could probably set the init in their class declaration to something like init="[this] spawn somePrecompiledFunction";

Then you 'just' need to add a parameter to select which side you want and flip the init in somePrecompiledFunction based on that.

Maybe?

MooseAteJack avatar Oct 04 '17 06:10 MooseAteJack

It is necessary to make Petros and the players is greenfor so that they are friendly either bluefor or redfor

AlexTriada avatar Oct 04 '17 09:10 AlexTriada

Can be an idea MooseAteJack... i'll look into it.

Triada it isn't only that... it's needed for the current check on switching. The otherway around would be change all the check code, but i'm not very comfortable in doing it.

StefArma avatar Oct 05 '17 08:10 StefArma