Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Actor S120 : Weapon
- {
- Tag "S-120 Shotgun"
- Inventory.PickupMessage "You got the WMC S-120 shotgun!"
- Obituary "%k \cd> \cfWMC S-120 \cd> \cl%o."
- Weapon.SlotNumber 3
- Weapon.AmmoType1 "S120_Clip"
- Weapon.AmmoUse1 1
- Weapon.AmmoGive1 50
- Weapon.AmmoType2 "Shell"
- Weapon.AmmoGive2 50
- Weapon.SlotNumber 3
- +WEAPON.NOAUTOFIRE
- AttackSound "Weapon/S120/Fire"
- States
- {
- Ready:
- //EVENTS
- TNT1 A 0 A_JumpIfInventory("Reloading", 1, "Reload_Check")
- HSHG A 1 A_WeaponReady
- Loop
- Select:
- TNT1 A 0 A_TakeInventory("reloading", 1)
- HSHG A 1 offset (-130,154)
- HSHG A 1 offset (-120,139)
- HSHG A 1 offset (-110,125)
- HSHG A 1 offset (-100,112)
- HSHG A 1 offset (-90,100)
- HSHG A 1 offset (-80,89)
- HSHG A 1 offset (-70,79)
- TNT1 A 0 A_PlaySound("Weapon/S120/Up")
- HSHG A 1 offset (-60,70)
- HSHG A 1 offset (-50,62)
- HSHG A 1 offset (-40,55)
- HSHG A 1 offset (-30,49)
- HSHG A 1 offset (-20,44)
- HSHG A 1 offset (-15,40)
- HSHG A 1 offset (-10,37)
- HSHG A 1 offset (-5,34)
- HSHG A 1 offset (0,0)
- goto Ready
- Deselect:
- HSHG A 1 offset (-4,34)
- HSHG A 1 offset (-8,40)
- HSHG A 1 offset (-16,49)
- HSHG A 1 offset (-24,62)
- HSHG A 1 offset (-32,79)
- HSHG A 1 offset (-40,100)
- HSHG A 1 offset (-48,125)
- HSHG A 1 offset (-56,154)
- TNT1 A 0 offset (-1,33)
- goto DeselectReal
- DeselectReal:
- TNT1 A 0 A_TakeInventory("reloading", 1)
- TNT1 AA 0 A_Lower
- TNT1 A 1 A_Lower
- loop
- Fire:
- HSHF A 2 bright A_FireBullets(4, 4, 14, 15, "BulletPuff", FBF_USEAMMO | FBF_NORANDOM)
- TNT1 A 0 A_GunFlash
- TNT1 A 0 Radius_Quake(4, 3, 0, 10, 0)
- HSHF B 1 bright
- HSHF CDE 1
- HSHG A 2
- HSHR ABCDEFGHI 1
- TNT1 A 0 A_PlayWeaponSound("Weapon/S120/Pump")
- //TNT1 A 0 A_CustomMissile("ShotgunShell", 34, 4, Random(86, 92), 0, Random(30, 45))
- HSHR IIJKLMNOPQRS 1
- HSHG A 2
- Goto Ready
- Flash:
- TNT1 A 0 A_SetPitch(pitch-0.3)
- TNT1 A 1 A_Light(6)
- TNT1 A 0 A_SetPitch(pitch-0.9)
- TNT1 A 1 A_Light(4)
- TNT1 A 0 A_SetPitch(pitch-(-0.2))
- TNT1 A 1 A_Light(3)
- TNT1 A 0 A_SetPitch(pitch-(-0.1))
- TNT1 A 1 A_Light(1)
- TNT1 A 0 A_SetPitch(pitch-(-0.1))
- TNT1 A 1 A_Light(1)
- TNT1 A 0 A_SetPitch(pitch-(-0.1))
- TNT1 A 1 A_Light0
- TNT1 A 0 A_SetPitch(pitch-(-0.1))
- Stop
- Reload:
- Reload_Check:
- TNT1 A 0 A_TakeInventory("reloading", 1)
- TNT1 A 0 A_JumpIfInventory("S120_Clip", 8, "Ready")
- TNT1 A 0 A_JumpIfInventory("Shell", 1, 1)
- goto Ready
- Reload_Go:
- HSHR ABCDEFGHI 1
- TNT1 A 0 A_FireCustomMissile("S120_Clip_Wasted")
- TNT1 A 0 A_PlaySound("Weapon/Common/ClipOut2")
- HSHR I 40
- TNT1 A 0 A_JumpIfInventory("S120_Clip", 8, "Reload_End")
- TNT1 A 0 A_JumpIfInventory("Shell", 1, 1)
- goto Reload_End
- TNT1 A 0 A_TakeInventory("Shell", 1)
- TNT1 A 0 A_GiveInventory("S120_Clip", 1)
- goto Reload_Go+12
- Reload_End:
- TNT1 A 0 A_PlaySound("weapon/common/clipin2")
- HSHR IIJKLM 1
- TNT1 A 0 A_PlaySound("Weapon/S120/Up")
- HSHR NOPQRS 1
- TNT1 A 0 A_TakeInventory("reloading", 1)
- goto ready
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement