Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Next revision Both sides next revision
bear-wiki-testing [2016/01/12 10:02]
bear created
bear-wiki-testing [2016/03/03 06:20]
bear
Line 1: Line 1:
-=== Removing Vehicle Magazines ===+==== Supply Crates ==== 
 +Supply crates are in the framework by default; they are placed next to every squad leader. The crate object type (and thus appearance) does not matter, and can be picked freely. The existing crates can also be sling-loaded by helicopter pilots. 
 + 
 +The crate contents are controlled by the assign gear scripts. Each crate will have a line of code in it's init box, more or less identical to this: <code c++>​["​crate_med",​this,"​blu_f"​] call f_fnc_assignGear</​code>​. The first parameter (//"​crate_med"//​) passes the desired gear configuration to the script, the second (//this//) references the crate object for the script and the third ("​blu_f"​) tells the gear script which factions gear should be added to the box. In this case, the crate receives a //"​crate_med"//​ loadout from the //"​blu_f"//​ (NATO) faction. 
 + 
 +The actual contents to be added is adjusted in the gear script file of the respective faction, e.g. //​f_assignGear_nato.sqf//​ (CTRL+F crate_med). 
 + 
 +**Image 1: Example crate from the framework template** 
 + 
 +{{::​supplycrate-1.png?​nolink|}} 
 + 
 + 
 + 
 +**Image 2: The crate'​s init code** 
 + 
 +{{::​supplycrate-2.png?​nolink|}} 
 + 
 + 
 + 
 +**Image 3: Changing crate object type** 
 + 
 +{{::​supplycrate-3.png?​nolink|}} 
 + 
 + 
 +---- 
 + 
 +==== Removing Vehicle Magazines ===
 Let's say you want to use a BMP-2 in a mission, but you think its ATGM might be too much. Let's say you want to use a BMP-2 in a mission, but you think its ATGM might be too much.
  
Line 9: Line 36:
 Example code: <code c++>if (isServer) then {this removeMagazinesTurret ["​rhs_mag_9m113_4",​ [0]];​};</​code>​ Example code: <code c++>if (isServer) then {this removeMagazinesTurret ["​rhs_mag_9m113_4",​ [0]];​};</​code>​
  
 +----
  
- +==== Nerfing Russian RHS tanks ====
-=== Nerfing Russian RHS tanks ===+
 It's possible to swap the ammunition in a tank to much older variants, thus decreasing it's lethality. It's possible to swap the ammunition in a tank to much older variants, thus decreasing it's lethality.
   - Follow the steps in the above guide on how to remove vehicle magazines   - Follow the steps in the above guide on how to remove vehicle magazines
  • bear-wiki-testing.txt
  • Last modified: 2016/03/03 06:24
  • by bear