Code: Select all
ACTOR MauserRifle : Weapon replaces SuperShotgun
{
Weapon.SelectionOrder 400
Inventory.PickupSound "mauser/boltfwd"
Inventory.PickupMessage "Mauser karabiner 98k (3)"
AttackSound "mauser/fire"
Weapon.AmmoType "MauserClip"
Weapon.AmmoGive 0
Weapon.AmmoUse 1
Weapon.AmmoType2 "MauserAmmo"
Weapon.AmmoGive2 2
Weapon.AmmoUse2 0
Weapon.Kickback 70
ConversationID 194
Scale 0.9
+AMMO_OPTIONAL
+NOEXTREMEDEATH
+NOALERT
+NOAUTOFIRE
States
{
Spawn:
MAUP A -1
Loop
Select:
TNT1 A 5
MAUH DCBA 2
MAUI A 1 A_Raise
Goto Select+5
Deselect:
MAUH A 0 A_JumpIfInventory("MauserIdle",1,ReadyDeselect)
MAUH A 0 A_JumpIfInventory("MauserIronSight",1,IronDeselect)
Goto DeselectAction
IronDeselect:
MAUI I 0 A_PlayWeaponSound("mauser/unshoulder")
MAUI I 0 ACS_Execute(357,0,1,0,0)
MAUI JIHGF 2
MAUI E 2 A_TakeInventory("MauserIronSight",1)
ReadyDeselect:
MAUI DCBA 2
DeselectAction:
MAUH A 2 A_TakeInventory("MauserIdle",30)
MAUH BCD 2
TNT1 A 5
DeselectLoop:
MAUI A 1 A_Lower
Goto DeselectLoop
Ready:
MAUI A 0 A_JumpIfInventory("MauserIdle",1,ReadyReady)
MAUI A 0 A_JumpIfInventory("IsReloading",1,Reload)
MAUI A 1 A_WeaponReady
Goto Ready
ReadyReady:
MAUI E 0 A_JumpIfInventory("IsReloading",1,ReadyReload)
MAUI E 1 A_WeaponReady
MAUI E 0 A_TakeInventory("MauserIdle",1)
MAUI E 0 A_JumpIfInventory("MauserIdle",1,ReadyReady)
MAUI DDCCBBAA 1 A_WeaponReady
Goto Ready
IronReady:
MAUS A 0 A_JumpIfInventory("IsReloading",1,IronReload)
MAUS A 1 A_WeaponReady
Goto IronReady
Fire:
MAUI A 0 A_JumpIfInventory("MauserIronSight",1,IronFire)
MAUI A 0 A_JumpIfInventory("MauserIdle",1,ReadyFire)
MAUI AC 1
ReadyFire:
MAUI E 0 A_GiveInventory("MauserIdle",30)
MAUI E 0 A_JumpIfNoAmmo(DryFire)
MAUI E 1 A_AlertMonsters
MAUF A 2 BRIGHT A_FireBullets(5,5,-1,35,0,1)
MAUF B 2 BRIGHT A_FireCustomMissile("ShotSmokeSpawner",0,0,6,8)
MAUI E 15
MAUC AB 3
MAUC C 3 A_PlaySound("mauser/boltback")
MAUC D 3
MAUC E 3 A_FireCustomMissile("DiazRifleCasingSpawner",-3,0,0,0)
MAUC FGHHGF 1
MAUC E 3 A_PlaySound("mauser/boltfwd")
MAUC DCBA 3
MAUI E 4
Goto Ready
DryFire:
MAUI E 1 A_PlayWeaponSound("mauser/empty")
MAUI E 4
Goto Ready
IronFire:
MAUS A 1 A_JumpIfNoAmmo(IronDryFire)
MAUS B 2 BRIGHT A_FireBullets(0,0,-1,70,0,1)
MAUS C 2 BRIGHT A_FireCustomMissile("ShotSmokeSpawner",0,0,0,10)
MAUS A 6 A_AlertMonsters
MAUI JIHGGFFEEEE 1
MAUC A 3 ACS_Execute(357,0,1,0,0)
MAUC B 3
MAUC C 3 A_PlaySound("mauser/boltback")
MAUC D 3
MAUC E 3 A_FireCustomMissile("DiazRifleCasingSpawner",-3,0,0,0)
MAUC FGHHGF 1
MAUC E 3 A_PlaySound("mauser/boltfwd")
MAUC DCBA 3
MAUI E 1 ACS_Execute(357,0,0.35,0,0)
MAUI EEEGGHIJ 1
Goto IronReady
IronDryFire:
MAUS A 1 A_PlayWeaponSound("mauser/empty")
MAUS A 4
Goto IronReady
AltFire:
MAUI A 0 A_JumpIfInventory("MauserIronSight",1,IronAltFire)
MAUI A 0 A_JumpIfInventory("MauserIdle",1,AltFire2)
MAUI A 0 A_PlayWeaponSound("mauser/shoulder")
MAUI BCD 2
AltFire2:
MAUI E 2 A_TakeInventory("MauserIdle",30)
MAUI F 2 A_GiveInventory("MauserIronSight",1)
MAUI G 0 ACS_Execute(357,0,0.35,0,0)
MAUI GHIJ 2
MAUS A 2
Goto IronReady
IronAltFire:
MAUI I 0 A_PlayWeaponSound("mauser/unshoulder")
MAUI I 0 ACS_Execute(357,0,1,0,0)
MAUI JIHGFED 2
MAUI C 2 A_TakeInventory("MauserIronSight",1)
MAUI B 2
MAUI A 2
Goto Ready
IronReload:
TNT1 A 0 A_JumpIfInventory("MauserClip",1,2)
TNT1 A 0 A_JumpIfInventory("MauserAmmo",1,3)
TNT1 A 0
TNT1 A 0 A_TakeInventory("IsReloading",1)
Goto IronReady
MAUI J 2 A_PlaySound("mauser/unshoulder")
MAUI IHGF 2
Goto ReadyReload
Reload:
TNT1 A 0 A_JumpIfInventory("MauserClip",1,2)
TNT1 A 0 A_JumpIfInventory("MauserAmmo",1,3)
TNT1 A 0
TNT1 A 0 A_TakeInventory("IsReloading",1)
Goto Ready
MAUI ABCDE 2
ReadyReload:
MAUR A 1 ACS_Execute(357,0,1,0,0)
MAUR ABBCCCDDDEEFFFFGGG 1
MAUR H 0 A_TakeInventory("MauserAmmo",1)
MAUR H 0 A_GiveInventory("MauserClip",5)
MAUR H 4 A_PlayWeaponSound("mauser/insert")
MAUR IIIIJJJKKLMNNOOOPPP 1
MAUR Q 4 A_PlayWeaponSound("mauser/boltfwd")
MAUR RST 3
MAUR U 3
MAUR U 0 A_JumpIfInventory("MauserIronSight",1,IronReloadFinish)
MAUI B 2 A_TakeInventory("MauserIdle",30)
MAUI A 2
Goto Ready
IronReloadFinish:
MAUI F 2 A_PlaySound("mauser/shoulder")
MAUI GHIJ 2
MAUS A 2 ACS_Execute(357,0,0.35,0,0)
Goto IronReady
}
}