mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 23:01:50 +00:00
a7e40b56f6
have those escapes stripped before printing so that they do not merge with subsequent text. - Moved default weapon slot assignments into the player classes. Weapon.SlotNumber is now used solely for mods that want to add new weapons without completely redoing the player's arsenal. Restored some config-based weapon slot customization, though slots are no longer automatically saved to the config and section names have changed slightly. However, unlike before, config slots are now the definitive word on slot assignments and cannot be overridden by any other files loaded. - Fixed: Several weapons were missing a game filter from their definitions. - Removed storage of weapon slots in the config so that weapon slots can be setup in the weapons themselves. Slots are still configurable, since they need to be for KEYCONF to work; any changes simply won't be saved when you quit. - Removed limit on weapon slot sizes. SVN r1428 (trunk)
168 lines
3.1 KiB
Text
168 lines
3.1 KiB
Text
|
|
// Fighter Weapon Piece -----------------------------------------------------
|
|
|
|
ACTOR FighterWeaponPiece : WeaponPiece native
|
|
{
|
|
Inventory.PickupSound "misc/w_pkup"
|
|
Inventory.PickupMessage "$TXT_QUIETUS_PIECE"
|
|
WeaponPiece.Weapon FWeapQuietus
|
|
+FLOATBOB
|
|
}
|
|
|
|
// Fighter Weapon Piece 1 ---------------------------------------------------
|
|
|
|
ACTOR FWeaponPiece1 : FighterWeaponPiece 12
|
|
{
|
|
Game Hexen
|
|
SpawnID 29
|
|
WeaponPiece.Number 1
|
|
States
|
|
{
|
|
Spawn:
|
|
WFR1 A -1 Bright
|
|
Stop
|
|
}
|
|
}
|
|
|
|
// Fighter Weapon Piece 2 ---------------------------------------------------
|
|
|
|
ACTOR FWeaponPiece2 : FighterWeaponPiece 13
|
|
{
|
|
Game Hexen
|
|
SpawnID 30
|
|
WeaponPiece.Number 2
|
|
States
|
|
{
|
|
Spawn:
|
|
WFR2 A -1 Bright
|
|
Stop
|
|
}
|
|
}
|
|
|
|
// Fighter Weapon Piece 3 ---------------------------------------------------
|
|
|
|
ACTOR FWeaponPiece3 : FighterWeaponPiece 16
|
|
{
|
|
Game Hexen
|
|
SpawnID 31
|
|
WeaponPiece.Number 3
|
|
States
|
|
{
|
|
Spawn:
|
|
WFR3 A -1 Bright
|
|
Stop
|
|
}
|
|
}
|
|
|
|
// Quietus Drop -------------------------------------------------------------
|
|
|
|
ACTOR QuietusDrop
|
|
{
|
|
States
|
|
{
|
|
Spawn:
|
|
TNT1 A 1
|
|
TNT1 A 1 A_DropWeaponPieces("FWeaponPiece1", "FWeaponPiece2", "FWeaponPiece3")
|
|
Stop
|
|
}
|
|
}
|
|
|
|
// The Fighter's Sword (Quietus) --------------------------------------------
|
|
|
|
ACTOR FWeapQuietus : FighterWeapon
|
|
{
|
|
Game Hexen
|
|
Health 3
|
|
Weapon.SelectionOrder 2900
|
|
+WEAPON.PRIMARY_USES_BOTH
|
|
+Inventory.NoAttenPickupSound
|
|
Weapon.AmmoUse1 14
|
|
Weapon.AmmoUse2 14
|
|
Weapon.AmmoGive1 20
|
|
Weapon.AmmoGive2 20
|
|
Weapon.KickBack 150
|
|
Weapon.YAdjust 10
|
|
Weapon.AmmoType1 "Mana1"
|
|
Weapon.AmmoType2 "Mana2"
|
|
Inventory.PickupMessage "$TXT_WEAPON_F4"
|
|
Inventory.PickupSound "WeaponBuild"
|
|
|
|
action native A_FSwordAttack();
|
|
|
|
States
|
|
{
|
|
Spawn:
|
|
TNT1 A -1
|
|
Stop
|
|
Select:
|
|
FSRD A 1 Bright A_Raise
|
|
Loop
|
|
Deselect:
|
|
FSRD A 1 Bright A_Lower
|
|
Loop
|
|
Ready:
|
|
FSRD AAAABBBBCCCC 1 Bright A_WeaponReady
|
|
Loop
|
|
Fire:
|
|
FSRD DE 3 Bright Offset (5, 36)
|
|
FSRD F 2 Bright Offset (5, 36)
|
|
FSRD G 3 Bright Offset (5, 36) A_FSwordAttack
|
|
FSRD H 2 Bright Offset (5, 36)
|
|
FSRD I 2 Bright Offset (5, 36)
|
|
FSRD I 10 Bright Offset (5, 150)
|
|
FSRD A 1 Bright Offset (5, 60)
|
|
FSRD B 1 Bright Offset (5, 55)
|
|
FSRD C 1 Bright Offset (5, 50)
|
|
FSRD A 1 Bright Offset (5, 45)
|
|
FSRD B 1 Bright Offset (5, 40)
|
|
Goto Ready
|
|
}
|
|
}
|
|
|
|
// Fighter Sword Missile ----------------------------------------------------
|
|
|
|
ACTOR FSwordMissile native
|
|
{
|
|
Speed 30
|
|
Radius 16
|
|
Height 8
|
|
Damage 8
|
|
Projectile
|
|
+EXTREMEDEATH
|
|
RenderStyle Add
|
|
DeathSound "FighterSwordExplode"
|
|
|
|
action native A_FSwordFlames();
|
|
|
|
States
|
|
{
|
|
Spawn:
|
|
FSFX ABC 3 Bright
|
|
Loop
|
|
Death:
|
|
FSFX D 4 Bright
|
|
FSFX E 3 Bright A_FSwordFlames
|
|
FSFX F 4 Bright A_Explode (64, 128, 0)
|
|
FSFX G 3 Bright
|
|
FSFX H 4 Bright
|
|
FSFX I 3 Bright
|
|
FSFX J 4 Bright
|
|
FSFX KLM 3 Bright
|
|
Stop
|
|
}
|
|
}
|
|
|
|
// Fighter Sword Flame ------------------------------------------------------
|
|
|
|
ACTOR FSwordFlame
|
|
{
|
|
+NOBLOCKMAP +NOGRAVITY
|
|
RenderStyle Translucent
|
|
Alpha 0.6
|
|
States
|
|
{
|
|
Spawn:
|
|
FSFX NOPQRSTUVW 3 Bright
|
|
Stop
|
|
}
|
|
}
|