Facebook
From Denim Porcupine, 2 Months ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 47
  1. _barrelpitch = _this select 0;
  2. _barreldir = _this select 1;
  3. _barrelroll = _this select 2;
  4. _charge = _this select 3;
  5.  
  6.  
  7. _theshell = "LLW_81mm_HEPD_004" createVehicle [getpos theplayer select 0, getpos theplayer select 1, 0.5];  
  8. //barrelpitch = 819;
  9. _pitchdegrees = _barrelpitch / 17.777777;
  10. //_charge = 314;
  11.  
  12. _theshell setdir _barreldir;
  13. [_theshell, _pitchdegrees, 0] call BIS_fnc_setPitchBank;
  14.  
  15. _startvelocity =
  16.  
  17. _theshell setVelocity [ ((cos _pitchdegrees)            * _charge) * (sin _barreldir),
  18.                                                 ((cos _pitchdegrees)    * _charge) * (cos _barreldir)),
  19.                                                 ((sin _pitchdegrees)    *_charge)
  20.                                                 ];
  21. hint str velocity _theshell;
  22. //player attachto [_theshell, [0,0,0]];

Replies to Untitled rss

Title Name Language When
Re: Untitled Voluminous Dove text 2 Months ago.