Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- actor Meleewep : DoomWeapon
- {
- +WEAPON.AMMO_OPTIONAL
- Weapon.ammotype "Stamina"
- States
- {
- ShieldUp:
- //if the player does not have stamina, go back to ready
- //start frontal iframes
- //if the player is still blocking, reduce his stamina regen
- //if the player gets hit while blocking, reduce his stamina
- //check if the player is still holding down the button, if so keep blocking
- //if not go back to ready
- SBLK D 30
- Goto Ready
- }
- }
- actor Claymore : Meleewep
- {
- Weapon.Slotnumber 1
- Weapon.Slotpriority 5000
- States
- {
- Spawn:
- ROCK A 6 Bright
- Loop
- Deselect:
- FSRD A 0 A_TakeInventory("ClaymoreTwoHanded", 1)
- FSRD A 1 A_Lower
- FSRD A 0 A_Lower
- Goto Deselect+1
- Select:
- FSRD A 1 A_Raise
- FSRD A 0 A_Raise
- loop
- Zoom:
- Goto ShieldUp
- Readytwohand:
- SWRD A 0 A_JumpIfInventory("Roll",1,2)
- SWRD A 1 A_WeaponReady(WRF_ALLOWRELOAD|WRF_ALLOWZOOM)
- loop
- //dont fire if player is rolling
- SWRD A 1 A_WeaponReady(WRF_NOFIRE|WRF_NOSWITCH)
- loop
- Ready:
- FSRD A 0 A_JumpIfInventory("Roll",1,2)
- FSRD A 1 A_WeaponReady(WRF_ALLOWRELOAD|WRF_ALLOWZOOM)
- loop
- FSRD A 1 A_WeaponReady(WRF_NOFIRE|WRF_NOSWITCH)
- loop
- Reload:
- FSRD A 10 A_JumpIfInventory("ClaymoreTwoHanded",1,2)
- SWRD A 10 A_GiveInventory("ClaymoreTwoHanded",1)
- Goto Readytwohand
- SWRD A 20 A_TakeInventory("ClaymoreTwoHanded",1)
- Goto Ready
- Twohandfire:
- TNT1 A 0 A_JumpIfInventory("Stamina", 1,1)
- Goto Readytwohand
- SWRD A 0 A_JumpIfInventory("Stamina", 20,1)
- Goto PoopyTwohanded
- SWRD A 0 A_TakeInventory("Stamina",30)
- SWRD A 1 A_PlaySound("clay")
- SWRD A 2 A_SpawnItemEX("SweepHitboxClaymore",30,50,34,2) //x pos, y pos, height, speed
- SWRD B 1
- SWRD B 1
- SWRD C 2 A_SpawnItemEX("SweepHitboxClaymore",55,0,34,2)
- SWRD C 1
- SWRD D 2 A_SpawnItemEX("SweepHitboxClaymore",40,-60,34,2)
- SWRD D 4
- Goto Readytwohand
- Fire:
- TNT1 A 0 A_JumpIfInventory("Stamina",1,1)
- Goto Ready
- //check if player is two handed, if so goto twohandfire, if not do normal 1 handed swing
- TNT1 A 0 A_JumpIfInventory("ClaymoreTwoHanded",1,"Twohandfire")
- TNT1 A 0 A_JumpIfInventory("Stamina",20,1)
- Goto PoopySwing
- FSRD D 3 A_PlaySound("clay")
- FSRD E 0 A_TakeInventory("Stamina",20)
- FSRD E 2 A_SpawnItemEX("SweepHitboxClaymore",30,50,34,2) //x pos, y pos, height, speed
- FSRD F 2 A_SpawnItemEX("SweepHitboxClaymore",55,0,34,2)
- FSRD H 2 A_SpawnItemEX("SweepHitboxClaymore",40,-60,34,2)
- FSRD I 3
- TNT1 A 3
- Goto Ready
- Altfire:
- TNT1 A 0 A_JumpIfInventory("Stamina",1,1)
- Goto Ready
- TNT1 A 0 A_JumpIfInventory("ClaymoreTwoHanded", 1, "Twohandaltfire")
- FSRD A 2 Offset(0,42)
- FSRD A 2 Offset(0,52)A_PlaySound("claymorepoke")
- FSRD B 2 Offset(0,62)
- FSRD B 2 Offset(0,72) A_TakeInventory("Stamina",25)
- FSRD C 2 Offset(0,82)
- FSRD C 2 Offset(0,92)
- TNT1 A 4 Offset(0,32)
- FSRD G 2 Offset(20,132)
- FSRD G 2 Offset(20,72)
- FSRD G 8 Offset(20,32) A_CustomPunch(100,1,0,"BulletPuff",250)
- FSRD H 2 Offset(10,52)
- FSRD I 2 Offset(0,72)
- TNT1 A 4 Offset(0,32)
- Goto Ready
- Twohandaltfire:
- TNT1 A 0 A_JumpIfInventory("Stamina",1,1)
- Goto ReadyTwohand
- SWR1 A 2 Offset(120,42)
- SWR1 A 2 Offset(120,52)A_PlaySound("claymorepoke")
- SWR1 A 2 Offset(120,62)
- SWR1 A 2 Offset(120,72) A_TakeInventory("Stamina",35)
- SWR1 A 2 Offset(120,82)
- SWR1 A 2 Offset(120,92)
- SWR1 A 4 Offset(120,32)
- SWR1 A 2 Offset(120,132)
- SWR1 A 2 Offset(120,72)
- SWR1 A 8 Offset(120,32) A_CustomPunch(100,1,0,"BulletPuff",250)
- SWR1 A 2 Offset(120,52)
- SWR1 A 2 Offset(120,72)
- TNT1 A 4 Offset(0,32)
- Goto ReadyTwohand
- PoopySwing:
- FSRD D 9
- FSRD D 0 A_PlaySound("clay")
- FSRD E 0 A_TakeInventory("Stamina",20)
- FSRD E 1 A_SpawnItemEX("SweepHitboxClaymore",30,50,34,2) //x pos, y pos, height, speed
- FSRD G 1 A_SpawnItemEX("SweepHitboxClaymore",60,-10,34,2)
- FSRD H 1 A_SpawnItemEX("SweepHitboxClaymore",40,-60,34,2)
- FSRD I 3
- TNT1 A 12
- Goto Ready
- PoopyTwohanded:
- SWRD A 9
- SWRD A 0 A_PlaySound("clay")
- SWRD A 0 A_TakeInventory("Stamina",20)
- SWRD A 2 A_SpawnItemEX("SweepHitboxClaymore",30,50,34,2) //x pos, y pos, height, speed
- SWRD B 2 A_SpawnItemEX("SweepHitboxClaymore",60,-10,34,2)
- SWRD C 2 A_SpawnItemEX("SweepHitboxClaymore",40,-60,34,2)
- SWRD D 3
- TNT1 A 12
- Goto Readytwohand
- }
- }
- actor SweepHitboxClaymore
- {
- Speed 2
- Mass 4
- Height 8
- Radius 16
- Damage (50)
- PROJECTILE
- +RIPPER
- States
- {
- Spawn:
- BAL1 A 10
- stop
- Death:
- BAL1 BCDE 1
- stop
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement