actor ChargeKickWep : MegaBuster 10055
{
Weapon.AmmoUse 2
Weapon.AmmoGive 112
Weapon.SlotNumber 4
Obituary "%o was kicked around by %k's charge kick."
Inventory.Pickupmessage "Power up! Charge Kick!"
weapon.ammotype "ChargeKickAmmo"
inventory.pickupsound "weapon/weaponup"
+WEAPON.AMMO_OPTIONAL
Weapon.KickBack 400
inventory.icon "CHARSI"
Scale 2.0
States
{
Spawn:
WEA2 E 1
loop
Ready:
CKIC C 0 ACS_ExecuteAlways(998,0,24)
CKIC C 1 A_WeaponReady
Goto Ready+1
Deselect:
TNT1 AAAAAAAAAAAAAAAAAAAAAA 0 A_Lower
CKIC C 1 A_Lower
Loop
Select:
TNT1 AAAAAAAAAAAAAAAAAAAAAA 0 A_Raise
CKIC C 1 A_Raise
Loop
Fire:
CKIC C 0 A_JumpIfNoAmmo("NoAmmo")
CKIC C 0 A_PlaySoundEx("weapon/chargekick","Weapon")
CKIC C 0 SetPlayerProperty(0,1,0)
CKIC C 2 A_Recoil(-20)
CKIC B 2 A_FireCustomMissile("ChargeKick",0,1,0,0)
CKIC A 8 SetPlayerProperty(0,0,0)
CKIC B 5
CKIC C 5
CKIC C 0 A_Refire
Goto Ready+1
Test:
SCLA BC 1
SCLA A 0 A_PlaySoundEx("weapon/chargekick","Weapon")
SCLA A 0 A_FireCustomMissile("ChargeKick",0,1,0,0)
SCLA DE 2
SCLA F 4
SCLA G 15
SCLA BCA 2 A_WeaponReady
Goto Ready
NoAmmo:
CKIC C 1 ACS_Execute(979,0)
Goto Ready+1
}
}

actor ChargeKickAmmo : Ammo
{
inventory.amount 1
inventory.maxamount 28
}

actor ChargeKick
{
PROJECTILE
Radius 14
Height 25
scale 2.5
damage (40)
damagetype "Kick"
speed 40
States
{
Spawn:
CKIC D 0
CKIC D 0 //A_RadiusThrust(500,64,0)
CKIC DEF 2
stop
}
}