Guest User

Untitled

a guest
Nov 12th, 2014
41
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class pickasniper extends mutator ;
  2.  
  3. var string sclass_name ;
  4.  
  5. var MVHandler MVHandler ;
  6.  
  7. event PreBeginPlay () {
  8.  
  9. Level.Game.BaseMutator.AddMutator(self);
  10. Log("This mod is property of the {=A.A.S.=} America's Army Soldiers Clan !",'LEEFFM');
  11. Log("This mod is made by {=A.A.S.=}LEEFFM",'LEEFFM');
  12. Log("THERE IS NO WARRANTY FOR THIS MOD. We do not take responsibility for any harm done by this MOD",'LEEFFM');
  13. Log("{=A.A.S.=}LEEFFM'S Pick A Sniper Mod Is Loaded",'LEEFFM');
  14. MVHandler = Spawn(Class'MVHandler');
  15. Level.Game.BroadcastHandler.RegisterBroadcastHandler(MVHandler);
  16. settimer(100,true);
  17.  
  18. }
  19.  
  20. function ModifyPlayer (Pawn Other) {
  21.  
  22. local HumanController HC ;
  23. local class<SoldierClass> sclass ;
  24. local int nr ;
  25.  
  26. AGP_Pawn (Other).EmptyInventory () ;
  27. HC = HumanController ( Other.PlayerReplicationInfo.GetController () ) ;
  28. nr = MVHandler.Getplayer (Other.PlayerReplicationInfo) ;
  29. HC.NotifyAdminmessage ("To pick a new weapon say: sniper [class]") ;
  30.  
  31. if (nr == -1) {
  32.  
  33. sclass_name = "AGP_Characters.ClassSniper" ;
  34.  
  35. }
  36. else {
  37.  
  38. sclass_name = MVHandler.PlayerData[nr].weapon ;
  39.  
  40. }
  41. sclass = Class<SoldierClass>( DynamicLoadObject ( sclass_name,Class'Class' ) ) ;
  42. HC.newTeamClass (sclass) ;
  43.  
  44. }
  45.  
  46. function timer() {
  47.  
  48. Level.Game.BroadcastHandler.Broadcast (None,"This weapon will be forced to you the next round") ;
  49. Level.Game.BroadcastHandler.Broadcast (None,"To pick a new weapon say sniper [class]") ;
  50.  
  51. }
  52.  
  53. defaultproperties {
  54.  
  55.  
  56.  
  57. }
RAW Paste Data