Facebook
From Voluminous Dove, 2 Years ago, written in Plain Text.
This paste is a reply to from - go back
Embed
Viewing differences between and Re: Untitled
  1. llw_getShootVector = {
  2.         params ["_object","_pitchUp","_shootDir"]
  3.         private ["_vector"];
  4.  
  5.         // calculate barrel vector at 0 deg. object angle
  6.         _vector =
  7.         [       (cos _pitchUp) * (sin _shootDir),
  8.                 (cos _pitchUp) * (cos _shootDir),
  9.                 (sin _pitchUp) ];
  10.  
  11.         _vector = _vector vectorAdd vectorUp _object;
  12.  
  13.         return vectorNormalized _vector;
  14. }
  15.  
  16.  
  17.  
  18. _barrelpitch = _this select 0;
  19. _barreldir = _this select 1;
  20. _barrelroll = _this select 2;
  21. _charge = _this select 3;
  22.  
  23.  
  24. _theshell = "LLW_81mm_HEPD_004" createVehicle [getpos theplayer select 0, getpos theplayer select 1, 0.5];
  25. //barrelpitch = 819;
  26. _pitchdegrees = _barrelpitch / 17.777777;
  27. //_charge = 314;
  28.  
  29. _theshell setdir _barreldir;
  30. [_theshell, _pitchdegrees, 0] call BIS_fnc_setPitchBank;
  31.  
  32. _startvelocity =
  33.  
  34. _theshell setVelocity (_charge vectorMultiply [_artilleryObject,_pitchdegrees,_barreldir] call llw_getShootVector)
  35. hint str velocity _theshell;
  36. //player attachto [_theshell, [0,0,0]];
  37.  

Replies to Re: Untitled rss

Title Name Language When
Re: Re: Untitled Hot Shama text 2 Years ago.