SHARE
TWEET

Untitled

a guest Oct 20th, 2019 102 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //*************************************************************
  2. //(C)GorzowModification Fabiu                                 *
  3. //*************************************************************
  4.  
  5. object PcmdRadio : CommandScript
  6. {
  7.     PcmdRadio()
  8.     {
  9.         SetIcon("alarm");
  10.         SetCursor("use");
  11.         SetRestrictions(RESTRICT_SELFEXECUTE);
  12.     }
  13.  
  14.     bool CheckPossible(GameObject *Caller)
  15.     {
  16.  
  17.         return true;
  18.     }
  19.  
  20.     bool CheckTarget(GameObject *Caller, Actor *Target, int childID)
  21.     {
  22.  
  23.         return true;
  24.     }
  25.  
  26.     void PushActions(GameObject *Caller, Actor *Target, int childID)
  27.     {
  28.         Vehicle v(Caller);
  29.         Person p (Caller);
  30.         p.PushActionGetEquipment(ACTION_APPEND, Target, EQUIP_FIRE_EXTINGUISHER);
  31.         p.AssignCommand("DummyRadio");
  32.         p.AssignCommand("ZcmdSis");
  33.         p.RemoveCommand("PcmdRadio");
  34.         p.RemoveCommand("Zcmdpolicja");
  35.         p.RemoveCommand("ZcmdPogo");
  36.        
  37.     }
  38.  };
  39.  
  40. object DummyRadio : CommandScript
  41.  {
  42.     DummyRadio()
  43.     {
  44.         SetGroupID(20);
  45.     }
  46.     bool CheckPossible(GameObject *Caller)
  47.     {
  48.  
  49.         return true;
  50.     }
  51.  
  52.     bool CheckTarget(GameObject *Caller, Actor *Target, int childID)
  53.     {
  54.  
  55.         return true;
  56.     }
  57.  
  58.     void PushActions(GameObject *Caller, Actor *Target, int childID)
  59.     {
  60.         p.PushActionWait(ACTION_NEWLIST, 1.f);
  61.     }
  62.  };
  63.  
  64. object ZcmdSis : CommandScript
  65. {
  66.     ZcmdSis()
  67.     {
  68.         SetIcon("alarm");
  69.         SetCursor("use");
  70.         SetRestrictions(RESTRICT_SELFEXECUTE);
  71.     }
  72.  
  73.     bool CheckPossible(GameObject *Caller)
  74.     {
  75.  
  76.         return true;
  77.     }
  78.  
  79.     bool CheckTarget(GameObject *Caller, Actor *Target, int childID)
  80.     {
  81.  
  82.         return true;
  83.     }
  84.  
  85.     void PushActions(GameObject *Caller, Actor *Target, int childID)
  86.     {
  87.         Vehicle v(Caller);
  88.         Person p (Caller);
  89.         if(p.HasCommand("DummyRadio"))
  90.         {
  91.             p.PushActionSwitchAnim(ACTION_APPEND, "idle06");
  92.             int soundID = Audio::PlaySample("mod:Audio/FX/Zgloszenia/13/sis.wav"); 
  93.             p.PushActionSwitchAnim(ACTION_APPEND, "idle06");
  94.         }
  95.     }
  96.  };
  97.  
  98. object Zcmdpolicja : CommandScript
  99. {
  100.     Zcmdpolicja()
  101.     {
  102.         SetIcon("alarm");
  103.         SetCursor("use");
  104.         SetRestrictions(RESTRICT_SELFEXECUTE);
  105.     }
  106.  
  107.     bool CheckPossible(GameObject *Caller)
  108.     {
  109.  
  110.         return true;
  111.     }
  112.  
  113.     bool CheckTarget(GameObject *Caller, Actor *Target, int childID)
  114.     {
  115.  
  116.         return true;
  117.     }
  118.  
  119. void PushActions(GameObject *Caller, Actor *Target, int childID)
  120.     {
  121.         Vehicle v(Caller);
  122.         Person p (Caller);
  123.         if(p.HasCommand("DummyRadio"))
  124.         {
  125.             p.PushActionSwitchAnim(ACTION_APPEND, "idle06");
  126.             int soundID = Audio::PlaySample("mod:Audio/FX/Zgloszenia/13/sis.wav"); 
  127.             p.PushActionSwitchAnim(ACTION_APPEND, "idle06");
  128.         }
  129.     }
  130.  };
  131.  
  132.  object Zcmdpogo : CommandScript
  133. {
  134.     Zcmdpogo()
  135.     {
  136.         SetIcon("alarm");
  137.         SetCursor("use");
  138.         SetRestrictions(RESTRICT_SELFEXECUTE);
  139.     }
  140.  
  141.     bool CheckPossible(GameObject *Caller)
  142.     {
  143.  
  144.         return true;
  145.     }
  146.  
  147.     bool CheckTarget(GameObject *Caller, Actor *Target, int childID)
  148.     {
  149.  
  150.         return true;
  151.     }
  152.  
  153.     void PushActions(GameObject *Caller, Actor *Target, int childID)
  154.     {
  155.         Vehicle v(Caller);
  156.         Person p (Caller);
  157.         if(p.HasCommand("DummyRadio"))
  158.         {
  159.             p.PushActionSwitchAnim(ACTION_APPEND, "idle06");
  160.             int soundID = Audio::PlaySample("mod:Audio/FX/Zgloszenia/13/sis.wav"); 
  161.             p.PushActionSwitchAnim(ACTION_APPEND, "idle06");
  162.         }
  163.     }
  164.  };
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top