Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //*************************************************************
- //(C)GorzowModification Fabiu *
- //*************************************************************
- object PcmdRadio : CommandScript
- {
- PcmdRadio()
- {
- SetIcon("alarm");
- SetCursor("use");
- SetRestrictions(RESTRICT_SELFEXECUTE);
- }
- bool CheckPossible(GameObject *Caller)
- {
- return true;
- }
- bool CheckTarget(GameObject *Caller, Actor *Target, int childID)
- {
- return true;
- }
- void PushActions(GameObject *Caller, Actor *Target, int childID)
- {
- Vehicle v(Caller);
- Person p (Caller);
- p.PushActionGetEquipment(ACTION_APPEND, Target, EQUIP_FIRE_EXTINGUISHER);
- p.AssignCommand("DummyRadio");
- p.AssignCommand("ZcmdSis");
- p.RemoveCommand("PcmdRadio");
- p.RemoveCommand("Zcmdpolicja");
- p.RemoveCommand("ZcmdPogo");
- }
- };
- object DummyRadio : CommandScript
- {
- DummyRadio()
- {
- SetGroupID(20);
- }
- bool CheckPossible(GameObject *Caller)
- {
- return true;
- }
- bool CheckTarget(GameObject *Caller, Actor *Target, int childID)
- {
- return true;
- }
- void PushActions(GameObject *Caller, Actor *Target, int childID)
- {
- p.PushActionWait(ACTION_NEWLIST, 1.f);
- }
- };
- object ZcmdSis : CommandScript
- {
- ZcmdSis()
- {
- SetIcon("alarm");
- SetCursor("use");
- SetRestrictions(RESTRICT_SELFEXECUTE);
- }
- bool CheckPossible(GameObject *Caller)
- {
- return true;
- }
- bool CheckTarget(GameObject *Caller, Actor *Target, int childID)
- {
- return true;
- }
- void PushActions(GameObject *Caller, Actor *Target, int childID)
- {
- Vehicle v(Caller);
- Person p (Caller);
- if(p.HasCommand("DummyRadio"))
- {
- p.PushActionSwitchAnim(ACTION_APPEND, "idle06");
- int soundID = Audio::PlaySample("mod:Audio/FX/Zgloszenia/13/sis.wav");
- p.PushActionSwitchAnim(ACTION_APPEND, "idle06");
- }
- }
- };
- object Zcmdpolicja : CommandScript
- {
- Zcmdpolicja()
- {
- SetIcon("alarm");
- SetCursor("use");
- SetRestrictions(RESTRICT_SELFEXECUTE);
- }
- bool CheckPossible(GameObject *Caller)
- {
- return true;
- }
- bool CheckTarget(GameObject *Caller, Actor *Target, int childID)
- {
- return true;
- }
- void PushActions(GameObject *Caller, Actor *Target, int childID)
- {
- Vehicle v(Caller);
- Person p (Caller);
- if(p.HasCommand("DummyRadio"))
- {
- p.PushActionSwitchAnim(ACTION_APPEND, "idle06");
- int soundID = Audio::PlaySample("mod:Audio/FX/Zgloszenia/13/sis.wav");
- p.PushActionSwitchAnim(ACTION_APPEND, "idle06");
- }
- }
- };
- object Zcmdpogo : CommandScript
- {
- Zcmdpogo()
- {
- SetIcon("alarm");
- SetCursor("use");
- SetRestrictions(RESTRICT_SELFEXECUTE);
- }
- bool CheckPossible(GameObject *Caller)
- {
- return true;
- }
- bool CheckTarget(GameObject *Caller, Actor *Target, int childID)
- {
- return true;
- }
- void PushActions(GameObject *Caller, Actor *Target, int childID)
- {
- Vehicle v(Caller);
- Person p (Caller);
- if(p.HasCommand("DummyRadio"))
- {
- p.PushActionSwitchAnim(ACTION_APPEND, "idle06");
- int soundID = Audio::PlaySample("mod:Audio/FX/Zgloszenia/13/sis.wav");
- p.PushActionSwitchAnim(ACTION_APPEND, "idle06");
- }
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement