I'm trying to port the insurgency gamemode to CLAfghan without having the base spawn at random locations and such things, but have a single static base at the airfield. I just have to idea how to port it properly, so here I am asking for some help.
I'm trying to port the insurgency gamemode to CLAfghan without having the base spawn at random locations and such things, but have a single static base at the airfield. I just have to idea how to port it properly, so here I am asking for some help.
Well to get a static base look for this
Insurgency/Common folder
initserver-common.sqf
for me its line 47
More specificity//_pos = randPos;
//while { count (_pos isFlatEmpty [30,0,0.2,20,0,false,objNull]) == 0 || getTerrainHeightASL _pos <= 2 } do {
// _pos = randPos;
//};
//HQ setDir (((CENTERPOS select 0) - (_pos select 0)) atan2 ((CENTERPOS select 1) - (_pos select 1))+90);
//HQ setPosATL _pos;
HQ setposATL (getmarkerpos "hq");
waitUntil { !isDead(HQ) };
That part where "HQ" is a marker on the map called hq (where the base spawns)HQ setposATL (getmarkerpos "hq");