All pastes #518182 Raw Edit

Mine

public text v1 · immutable
#518182 ·published 2007-05-29 07:02 UTC
rendered paste body
Realistic Tracer Documentation:

-------------------------------------------------------------------------------------------------

Init line of the unit for manual addition:

[unitname,(tracer settings)] execVM "\cent_tracer\cent_tracer.sqf";

Note:	The Tracer backengine will automaticly initialize if it wasn't yet.

-------------------------------------------------------------------------------------------------

If you have placed any Tracer Gamelogic on the map, please use the following syntax:

d=[unitname,(tracer settings)] spawn CENT_tracer;

-------------------------------------------------------------------------------------------------

Call line for automatic addition (Though it's easier to just place the Auto Gamelogic on the map :D):

	CENT_AUTO=true; 						// Enable loop
	CENT_REFRESH=30; 						// Sleep time
	CENT_PATH="\cent_tracer\"; 	// Path to take the script from, change to "" if you have the script inside your mission folder
	[] execVM (CENT_PATH+"cent_tracer-Init.sqf");


-------------------------------------------------------------------------------------------------

Tracer config:

[unitname,<tracer per # rnds>,<ricochet on/off>,<weapons all/MG only>,<size modifier>]

Default:

[this,3,0,1,2]

Tracer every 3rd round, no ricochets, all weapons, size 2

-------------------------------------------------------------------------------------------------

New Variables:
 * CENT_UNIT_ARRAY2 - Array. Used for only placing the units in without their parameters, for easy index searching etc.
 * CENT_UNIT_ARRAY3 - Array. Used for exclusion units, units inside this array will not get tracers, used by the Auto Trigger, gamelogics etc will automaticly be excluded.
 * CENT_REFRESH - Number. Default: 30. Used for the Trigger loop, Put somewhere in your init.sqf before initializing the script: CENT_REFRESH=20;  to make the loop sleep 20 seconds
 * CENT_AUTO - Boolean. Default: false. Used for the Trigger loop. Put somewhere in your init.sqf before initializing the script: CENT_AUTO=true;  to enable the loop
 * CENT_PATH - String. Default: "\cent_tracer\". Put in your init.sqf before initializing the script to for instance use the scripts from within side a mission folder instead of the addon.

 * Default Settings used, you can overwrite these values as you wish. These values are taken when using Auto Trigger, and if you do not specify any tracer settings when adding a unit manually
  * CENT_SETT_TRACERSETTING = 3;
  * CENT_SETT_SIZEMOD = 1;
  * CENT_SETT_RICO = 0;
  * CENT_SETT_TRACER = 1;

Demo Missions:
 * Legacy - Displays how to manually add units to the script
 * Modern - Displays how to manually add units to the script while making use of a gamelogic and as such being able to use spawn instead of execVM
 * Auto - Displays how to automaticly add units to the script.
 * ScriptsInside - Displays how to make it possible to run the scripts from inside Mission folder
 * Demo - Couple of East vs West Fighting :-)

New Gamelogics:
 * AUTO - Enables the Automatic addition of units to the trigger script
 * INIT - Simply enables the Tracer Backengine

Updates by Sickboy
(sb_at_6thSense.eu)