Code: Select all
ACTOR Triple_Element_Spell : Weapon {
SpawnID 205
// 251 x 229
Scale 0.25
Radius 32
Height 57
+FLOATBOB
Weapon.AmmoType1 "Triple_Element_Spell_Ammo"
Weapon.AmmoGive1 4
Weapon.AmmoUse1 1
Weapon.SelectionOrder 250
Weapon.SlotNumber 7
Weapon.SlotPriority 0.1
AttackSound "weapons/Triple_Element_Spell/Shoot"
Inventory.PickupMessage "You have obtained the Triple Element Spell!"
var int user_ToggleZoom;
States {
Spawn:
TRIG A 1 BRIGHT
TRIG A 1 BRIGHT {
user_ToggleZoom = 0;
}
Loop
Ready:
TRIG B 1 A_WeaponReady(WRF_ALLOWZOOM)
Loop
Select:
TRIG B 1 A_Raise
Loop
DeSelect:
TRIG B 1 A_Lower
Loop
Fire:
TRIG B 16
TRIG B 16 {
A_RailAttack(random(65, 80), 50, TRUE, "Red", "none", RGF_FULLBRIGHT, 0, "none", 0.0, 0.0, 7168.0, 55, 1.3, 1.0, "none", 3.0);
A_RailAttack(random(65, 80), 5, FALSE, "Green", "none", RGF_FULLBRIGHT, 0, "none", 0.0, 0.0, 7168.0, 55, 1.3, 1.0, "none", 3.0);
A_RailAttack(random(65, 80), 25, FALSE, "Blue", "none", RGF_FULLBRIGHT, 0, "none", 0.0, 0.0, 7168.0, 55, 1.3, 1.0, "none", 40.0);
}
GoTo Ready
Zoom:
TRIG B 1 {
if (user_ToggleZoom == 1){
user_ToggleZoom = 0;
A_ZoomFactor(1.0);
} else {
user_ToggleZoom = 1;
A_ZoomFactor(3.0);
}
}
GoTo Ready
}
}