Wolfenswan's function library

Party-approved future science plus handbooks for the revolution
User avatar
wolfenswan
Posts: 1208
Joined: Wed May 25, 2011 4:59 pm

Re: Wolfenswan's function library

Post by wolfenswan » Wed Mar 04, 2015 4:28 pm

Update 04/03/2015:

ws_fnc_createTripflare is now much sexier, burning brighter and longer

User avatar
wolfenswan
Posts: 1208
Joined: Wed May 25, 2011 4:59 pm

Re: Wolfenswan's function library

Post by wolfenswan » Thu Apr 02, 2015 12:45 pm

Update 02/04/2015:

New
fn_isFacingWall
fn_setInsidePos

Both improve enterBuilding & createGarrison by making sure units face out of windows (most of the time) and knell only when it makes sense

User avatar
wolfenswan
Posts: 1208
Joined: Wed May 25, 2011 4:59 pm

Re: Wolfenswan's function library

Post by wolfenswan » Fri Jul 15, 2016 3:09 pm

Update 14/07/2016:

Modified how the function selects the classes to spawn. Should be more intuitive to tweak which units spawn for which sides now.

New code:

Code: Select all

// NATO
_garrisonWest = ["B_Soldier_lite_F","B_Soldier_F"];

// CSAT
_garrisonEast = ["O_Soldier_lite_F","O_Soldier_F"];

// AAF
_garrisonIndp = ["I_Soldier_lite_F","I_Soldier_F"];

// CIVILIAN
_garrisonCIV = [""];

// NATO PAcific
// ["B_T_Soldier_F"]

// CSAT Pacific
// ["O_T_Soldier_F"];

// Syndikat Paramilitary
// ["I_C_Soldier_Para_1_F","I_C_Soldier_Para_2_F","I_C_Soldier_Para_7_F"];

// Syndikat Bandit
// ["I_C_Soldier_Bandit_4_F","I_C_Soldier_Bandit_7_F","I_C_Soldier_Bandit_5_F"];

// FIA
// ["B_G_Soldier_lite_F","B_G_Soldier_F"];

Post Reply