Vel-san

Example Mut -- IGNORE

Sep 16th, 2021 (edited)
5,055
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //====================================================
  2. // NOTE: EXTREMELY OLD VERSION THAT IS RET*RDED IN LOGIC!
  3. // This is just a sample example for a user request @Steam
  4. //====================================================
  5.  
  6. class WeaponStatConfig extends Mutator
  7.                                 Config(WeaponStat_Config);
  8.  
  9. var() config int Single9mmMag, Single9mmDmgMin, Single9mmDmgMax;
  10.  
  11. function PostBeginPlay ()
  12. {
  13.   super.PostBeginPlay();
  14.   SetTimer(0.1,false);
  15. }
  16.  
  17. function Timer ()
  18. {
  19.   ApplyWeaponStatChange();
  20. }
  21.  
  22. function ApplyWeaponStatChange(){
  23.  
  24.     Log("Start ApplyWeaponStatChange()");
  25.     class'KFMod.Single'.default.MagCapacity=Single9mmMag;
  26.     class'KFMod.SingleFire'.default.DamageMin=Single9mmDmgMin;
  27.     class'KFMod.SingleFire'.default.DamageMax=Single9mmDmgMax;
  28.     Log("-----|| Single9mm Mag: " $Single9mmMag$ " || Single9mm MinDmg: " $Single9mmDmgMin$ " || Single9mm MaxDmg: " $Single9mmDmgMax$ "||-----");
  29.     Log("End Start ApplyWeaponStatChange()");
  30. }
  31.  
  32. defaultproperties
  33. {
  34.     // Mandatory Vars
  35.     bAlwaysRelevant=true
  36.     RemoteRole=ROLE_SimulatedProxy
  37.     bAddToServerPackages=true // Not needed since this is only for the server
  38.  
  39.     // Mut Vars
  40.     GroupName="KF-WeaponStatConfig"
  41.     FriendlyName="WeaponStatConfig - Ultra Old"
  42.     Description="Test version for Weapon Stats Configurator. Currently changes default Single9mm ( Single Default Pistol ) variables only; - By Vel-San"
  43.  
  44.     // Default 9mm Stats
  45.     // Single9mmMag=15
  46.     // Single9mmDmgMin=25
  47.     // Single9mmDmgMax=35
  48. }
RAW Paste Data