Guest User

Untitled

a guest
Feb 18th, 2013
78
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // TriggerTrigger
  2. // When triggered, triggers its "Event" in a certain way.
  3.  
  4. class TriggerTrigger extends MoreTriggers;
  5.  
  6. enum eTrigType
  7. {
  8. TRIG_Trigger,
  9. TRIG_Touch,
  10. TRIG_Frob
  11. };
  12.  
  13. var() eTrigType TrigType;
  14.  
  15. function BeenTriggered(Actor Instigator)
  16. {
  17. local Actor a;
  18.  
  19. foreach AllActors(LimitingClass,a,Event)
  20. {
  21. switch(TrigType)
  22. {
  23. case TRIG_Trigger:
  24. a.Trigger(Instigator,Pawn(Instigator));
  25. break;
  26. case TRIG_Touch:
  27. a.Touch(Instigator);
  28. break;
  29. case TRIG_Frob:
  30. a.Frob(Instigator,None);
  31. break;
  32. }
  33. }
  34. }
  35.  
  36. defaultproperties
  37. {
  38. TrigType=TRIG_Trigger
  39. }
RAW Paste Data