📄 weapondefs.cpp
字号:
0.25f, // Flash duration
0.175f, // Flash scale
{0.0f, 0.0f, 0.0f}, // 3rd person gun offset
{0.7f, -0.9f, 1.9f}, // Gun Offset
{0.0f, 0.0f, 0.0f}, // Muzzle Offset
{0.03f, 0.03f, 0.15f}, // Recoil
{4.25f, -4.25f, 25.0f}, // Flash position
0.625f, // Eject interval
0.0f, // View kick
DFALSE, // View kick is Cumulative
DFALSE, // Animation looping
DTRUE, // Alt anim looping
"interface\\statusbar\\weapons\\deathray.pcx", // Icon for status bar
"interface\\statusbar\\weapons\\deathray_h.pcx", // Highlighted icon for status bar
},
// Tesla Cannon
{
"Models\\Weapons\\TeslaRod_pv.abc", // Model
"Models\\Weapons\\lh_TeslaRod_pv.abc", // Model
"Skins\\Weapons\\C_Tesla_pv_t.dtx", // Skin
"Models\\Powerups\\TeslaCannon_pu.abc", // 3rd person model
"Skins\\Powerups\\TeslaCannon_pu.dtx", // 3rd person skin
WEAP_TESLACANNON, // Type
TYPE_AUTORIFLE, // Fire type
AMMO_BATTERY, // Ammo type
2, // Ammo Use
25, // Alt Ammo Use
30.0f, // Min Damage
50.0f, // Max Damage
100.0f, // Min Alt damage
150.0f, // Max Alt damage
0.175f, // Reload time
1.0f, // Alt reload time
{20.0f, 20.0f}, // Spread
{0.0f, 0.0f}, // Alt Spread
1000.0f, // Projectile Velocity
1000.0f, // Alt Projectile Velocity
3500.0f, // Range
3500.0f, // Alt Range
1, // Shots per fire
1, // Alt Shots per fire
4, // Strength or Magic required
0, // Two-handed Strength or Magic required
100, // Damage Radius (projectiles)
150, // Alt Damage Radius (projectiles)
DFALSE, // Alt fire zoom
DFALSE, // Semi-auto
"Sounds\\Weapons\\Tesla\\fire.wav", // Fire sound
"Sounds\\Weapons\\Tesla\\alt.wav", // Alt Fire sound
"", // Empty weapon sound
"", // Alt Empty weapon sound
"CTeslaProjectile", // Projectile class
"CTeslaBallProjectile", // Alt Projectile class
150.0f, // Muzzle Flash radius
{0.2f, 0.2f, 1.0f}, // Muzzle Flash color
"Tesla Cannon", // Name
IDS_WEAPON_TESLA, // Name ID (resource)
"Sprites\\teslamuzzle.spr", // flash sprite name
"Sprites\\teslaflash.spr", // alt flash Sprite name
0.25f, // Flash duration
0.1f, // Flash scale
{0.0f, 0.0f, 0.0f}, // 3rd person gun offset
{0.5f, -0.9f, 1.4f}, // Gun Offset
{0.15f, 0.3f, 5.0f}, // Muzzle Offset
{0.03f, 0.03f, 0.15f}, // Recoil
{5.0f, -5.0f, 30.0f}, // Flash Offset
0.625f, // Eject interval
0.0f, // View kick
DFALSE, // View kick is Cumulative
DTRUE, // Animation looping
DFALSE, // Alt anim looping
"interface\\statusbar\\weapons\\tesla.pcx", // Icon for status bar
"interface\\statusbar\\weapons\\tesla_h.pcx", // Highlighted icon for status bar
},
// Voodoo doll
{
"Models\\Weapons\\Voodoo_pv.abc", // Model
"Models\\Weapons\\Voodoo_pv.abc", // Model
"Skins\\Weapons\\C_Voodoo_pv_t.dtx", // Skin
"Models\\Powerups\\Voodoo_pu.abc", // 3rd person model
"Skins\\Powerups\\Voodoo_pu.dtx", // 3rd person skin
WEAP_VOODOO, // Type
TYPE_MELEE, // Fire type
AMMO_FOCUS, // Ammo type
5, // Ammo Use
100, // Alt Ammo Use
10.0f, // Min Damage
20.0f, // Max Damage
40.0f, // Min Alt damage
60.0f, // Max Alt damage
0.33f, // Reload time
1.0f, // Alt reload time
{0.0f, 0.0f}, // Spread
{0.0f, 0.0f}, // Alt Spread
0.0f, // Projectile Velocity
0.0f, // Alt Projectile Velocity
3500.0f, // Range
3500.0f, // Alt Range
1, // Shots per fire
1, // Alt Shots per fire
1, // Strength or Magic required
0, // Two-handed Strength or Magic required
0, // Damage Radius (projectiles)
0, // Alt Damage Radius (projectiles)
DFALSE, // Alt fire zoom
DFALSE, // Semi-auto
"Sounds\\Weapons\\voodoo\\fire.wav",// Fire sound
"Sounds\\Weapons\\voodoo\\alt.wav", // Alt Fire sound
"", // Empty weapon sound
"", // Alt Empty weapon sound
NULL, // Projectile class
NULL, // Alt Projectile class
0, // Muzzle Flash radius
{0.0f, 0.0f, 0.0f}, // Muzzle Flash color
"Voodoo Doll", // Name
IDS_WEAPON_VOODOO, // Name ID (resource)
"", // flash sprite name
"", // alt flash Sprite name
0.0f, // Flash duration
0.0f, // Flash scale
{0.0f, 0.0f, 0.0f}, // 3rd person gun offset
{-0.2f, -0.2f, 1.8f}, // Gun Offset
{0.0f, 0.275f, 1.0f}, // Muzzle Offset
{0.03f, 0.03f, 0.15f}, // Recoil
{0.0f, 0.0f, 0.1f}, // Flash position
0.625f, // Eject interval
0.0f, // View kick
DFALSE, // View kick is Cumulative
DFALSE, // Animation looping
DFALSE, // Alt anim looping
"interface\\statusbar\\weapons\\voodoo.pcx", // Icon for status bar
"interface\\statusbar\\weapons\\voodoo_h.pcx", // Highlighted icon for status bar
},
// The Orb
{
"Models\\Weapons\\Orb_pv.abc", // Model
"Models\\Weapons\\Orb_pv.abc", // Model
"Skins\\Weapons\\C_Orb_pv_t.dtx", // Skin
"Models\\Powerups\\Orb_pu.abc", // 3rd person model
"Skins\\Powerups\\Orb_pu.dtx", // 3rd person skin
WEAP_ORB, // Type
TYPE_PISTOL, // Fire type
AMMO_FOCUS, // Ammo type
20, // Ammo Use
200, // Alt Ammo Use
10.0f, // Min Damage
15.0f, // Max Damage
10.0f, // Min Alt damage
15.0f, // Max Alt damage
1.0f, // Reload time
5.0f, // Alt reload time
{0.0f, 0.0f}, // Spread
{0.0f, 0.0f}, // Alt Spread
500.0f, // Projectile Velocity
500.0f, // Alt Projectile Velocity
3500.0f, // Range
3500.0f, // Alt Range
1, // Shots per fire
1, // Alt Shots per fire
1, // Strength or Magic required
0, // Two-handed Strength or Magic required
0, // Damage Radius (projectiles)
0, // Alt Damage Radius (projectiles)
DFALSE, // Alt fire zoom
DFALSE, // Semi-auto
"", // Fire sound
"", // Alt Fire sound
"", // Empty weapon sound
"", // Alt Empty weapon sound
"COrbProjectile", // Projectile class
"COrbAltProjectile", // Alt Projectile class
0, // Muzzle Flash radius
{0.0f, 0.0f, 0.0f}, // Muzzle Flash color
"The Orb", // Name
IDS_WEAPON_ORB, // Name ID (resource)
"", // flash sprite name
"", // alt flash Sprite name
0.0f, // Flash duration
0.0f, // Flash scale
{0.0f, 0.0f, 0.0f}, // 3rd person gun offset
{0.0f, -0.5f, 2.4f}, // Gun Offset
{0.0f, 0.0f, 0.0f}, // Muzzle Offset
{0.03f, 0.03f, 0.15f}, // Recoil
{0.0f, -5.0f, 20.0f}, // Flash position
0.625f, // Eject interval
0.0f, // View kick
DFALSE, // View kick is Cumulative
DFALSE, // Animation looping
DFALSE, // Alt anim looping
"interface\\statusbar\\weapons\\orb.pcx", // Icon for status bar
"interface\\statusbar\\weapons\\orb_h.pcx", // Highlighted icon for status bar
},
// Life Leech
{
"Models\\Weapons\\Lifeleech_pv.abc", // Model
"Models\\Weapons\\Lifeleech_pv.abc", // Model
"Skins\\Weapons\\C_Lifeleech_pv_t.dtx", // Skin
"Models\\Powerups\\Lifeleech_pu.abc", // 3rd person model
"Skins\\Powerups\\Lifeleech_pu.dtx", // 3rd person skin
WEAP_LIFELEECH, // Type
TYPE_MELEE, // Fire type
AMMO_FOCUS, // Ammo type
2, // Ammo Use
100, // Alt Ammo Use
20.0f, // Min Damage
30.0f, // Max Damage
75.0f, // Min Alt damage
100.0f, // Max Alt damage
0.15f, // Reload time
1.0f, // Alt reload time
{0.0f, 0.0f}, // Spread
{0.0f, 0.0f}, // Alt Spread
1000.0f, // Projectile Velocity
0.0f, // Alt Projectile Velocity
3500.0f, // Range
3500.0f, // Alt Range
1, // Shots per fire
1, // Alt Shots per fire
1, // Strength or Magic required
0, // Two-handed Strength or Magic required
100, // Damage Radius (projectiles)
0, // Alt Damage Radius (projectiles)
DFALSE, // Alt fire zoom
DFALSE, // Semi-auto
"", // Fire sound
"Sounds\\Weapons\\lifeleech\\alt.wav", // Alt Fire sound
"", // Empty weapon sound
"", // Alt Empty weapon sound
"CLeechPrimeProjectile",// Projectile class
"CLeechAltProjectile", // Alt Projectile class
0, // Muzzle Flash radius
{0.0f, 0.0f, 0.0f}, // Muzzle Flash color
"Life Leech", // Name
IDS_WEAPON_LIFELEECH, // Name ID (resource)
"", // flash sprite name
"", // alt flash Sprite name
0.25f, // Flash duration
0.10f, // Flash scale
{0.0f, 0.0f, 0.0f}, // 3rd person gun offset
{-1.2f, -1.0f, 3.3f}, // Gun Offset
{0.0f, 0.0f, 0.0f}, // Muzzle Offset
{0.03f, 0.03f, 0.15f}, // Recoil
{1.5f, -4.5f, 25.0f}, // Flash position
0.625f, // Eject interval
0.0f, // View kick
DFALSE, // View kick is Cumulative
DTRUE, // Animation looping
DFALSE, // Alt anim looping
"interface\\statusbar\\weapons\\lifeleech.pcx", // Icon for status bar
"interface\\statusbar\\weapons\\lifeleech_h.pcx", // Highlighted icon for status bar
},
// Melee Hand Weapon
{
"Models\\Weapons\\c_knife_pv.abc", // Model
"Models\\Weapons\\c_knife_pv.abc", // Model
"Skins\\Weapons\\C_knife_pv_t.dtx", // Skin
"Models\\Powerups\\knifec_pu.abc", // Model
"Skins\\Powerups\\knifec_pu.dtx", // Skin
WEAP_MELEE, // Type
TYPE_MELEE, // Fire type
AMMO_NONE, // Ammo type
1, // Ammo Use
1, // Alt Ammo Use
15.0f, // Min Damage
25.0f, // Max Damage
35.0f, // Min Alt damage
60.0f, // Max Alt damage
0.0f, // Reload time
0.0f, // Alt reload time
{0.0f, 0.0f}, // Spread
{0.0f, 0.0f}, // Alt Spread
0.0f, // Projectile Velocity
0.0f, // Alt Projectile Velocity
75.0f, // Range
75.0f, // Alt Range
1, // Shots per fire
1, // Alt Shots per fire
1, // Strength or Magic required
0, // Two-handed Strength or Magic required
0, // Damage Radius (projectiles)
0, // Alt Damage Radius (projectiles)
DFALSE, // Alt fire zoom
DFALSE, // Semi-auto
"Sounds\\Weapons\\Knife\\fire.wav", // Fire sound
"Sounds\\Weapons\\Knife\\alt.wav", // Alt Fire sound
"", // Empty weapon sound
"", // Alt Empty weapon sound
NULL, // Projectile class
NULL, // Alt Projectile class
0, // Muzzle Flash radius
{0.0f, 0.0f, 0.0f}, // Muzzle Flash color
"Chosen Knife", // Name
IDS_WEAPON_KNIFE, // Name ID (resource)
"", // flash sprite name
"", // alt flash Sprite name
0.0f, // Flash duration
0.0f, // Flash scale
{0.0f, 0.0f, 0.0f}, // 3rd person gun offset
{-0.4f, -1.2f, 0.1f}, // 1st person gun Offset
{0.0f, 0.0f, 0.0f}, // Muzzle Offset
{0.03f, 0.03f, 0.15f}, // Recoil
{0.0f, 0.0f, 0.1f}, // Flash position
0.625f, // Eject interval
0.0f, // View kick
DFALSE, // View kick is Cumulative
DFALSE, // Animation looping
DFALSE, // Alt anim looping
"interface\\statusbar\\weapons\\c_knife.pcx", // Icon for status bar
"interface\\statusbar\\weapons\\c_knife_h.pcx", // Highlighted icon for status bar
},
#ifdef _ADD_ON
// Combat Shotgun
{
"Models_ao\\Weapons_ao\\CombatShotgun_pv.abc", // Model
"Models_ao\\Weapons_ao\\CombatShotgun_pv.abc", // LH Model
"Skins_ao\\Weapons_ao\\C_ComShot_pv_t.dtx", // Skin
"Models_ao\\Powerups_ao\\CombatShotgun_pu.abc", // 3rd person model
"Skins_ao\\Powerups_ao\\CombatShotgun_pu.dtx", // 3rd person skin
WEAP_COMBATSHOTGUN, // Type
TYPE_RIFLE, // Fire type
AMMO_SHELL, // Ammo type
2, // Ammo Use
5, // Alt Ammo Use
4.0f, // Min Damage
6.0f, // Max Damage
50.0f, // Min Alt damage
70.0f, // Max Alt damage
0.33f, // Reload time
2.0f, // Alt reload time
{200.0f, 100.0f}, // Spread
{0.0f, 0.0f}, // Alt Spread
0.0f, // Projectile Velocity
1500.0f, // Alt Projectile Velocity
3500.0f, // Range
400.0f, // Alt Range
16, // Shots per fire
1, // Alt Shots per fire
3, // Strength or Magic required
0, // Two-handed Strength or Magic required
0, // Damage Radius (projectiles)
200, // Alt Damage Radius (projectiles)
DFALSE, // Alt fire zoom
DTRUE, // Semi-auto
"Sounds_ao\\Weapons\\combatshotgun\\fire.wav", // Fire sound
"Sounds_ao\\Weapons\\combatshotgun\\alt.wav", // Alt Fire sound
"", // Empty weapon sound
"", // Alt Empty weapon sound
NULL, // Projectile class
"CGasGrenade", // Alt Projectile class
125, // Muzzle Flash radius
{1.0f, 0.68f, 0.35f}, // Muzzle Flash color
"Combat Shotgun", // Name
IDS_WEAPON_COMBATSHOTGUN, // Name ID (resource)
"Sprites\\shotgun2.spr", // flash sprite name
"Sprites\\m16altflare.spr", // alt flash Sprite name
0.05f, // Flash duration
0.22f, // Flash scale
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -