ZPC Bazooka Documentation
🔧 Core Configuration (CVars)
Cvar |
Default |
Description |
zpc_bazooka_delay |
10 |
Reload time (seconds) between shots |
zpc_bazooka_damage |
700 |
Maximum explosion damage (center) |
zpc_bazooka_radius |
250 |
Explosion radius (units) |
zpc_bazooka_speed |
2000 |
Rocket projectile speed |
zpc_bazooka_count |
5 |
Max allowed Bazookas per round |
zpc_bazooka_reward_per_kill |
1 |
Ammo Packs (AP) reward per zombie kill |
💥 Key Features
🎯 Acquisition
- Purchased as an Extra Item (Human-only) for 35 Ammo Packs
- Replaces the Knife model (
v_zpc_bazooka.mdl
)
- Limited to 5 active Bazookas per round
⚙️ Mechanics
- Fire Mechanism: Fires rocket projectile (
zpc_bazooka_missile.mdl
)
- Damage Falloff: Linear reduction from center to edge
- Knockback: Launches user backward when fired
- Screen Shake: Affects zombies in explosion radius
🚫 Restrictions
- Zombies/bots cannot use
- Auto-removed on infection/disconnect
- Reload delay prevents rapid firing
🎨 Visual/Sound Effects
- Sounds: Rocket fire, explosion, pickup
- Particles: Smoke trails, explosion sprites
⚠️ Special Interactions
- Dropping: DROP key removes Bazooka
- Infection: Auto-removes weapon
- Round End: Resets all Bazookas
📊 Damage Calculation
damage = maxdamage - (maxdamage * (distance / radius))
Example: At 125 units (half-radius), damage = 700 - (700 * 0.5) = 350
🛠️ Technical Notes
Natives:
zpc_set_user_bazooka(id)
- Get Free Bazooka
zpc_get_user_bazooka(id)
- Check Bazooka ownership
zpc_get_user_bazooka_shoot(id)
- Fire validation
Hooks:
- Blocks use with tanks/mounted weapons
- Syncs models via
CurWeapon
event
📜 In-Game Messages
- 🔹 Purchase: "You bought Bazooka! [Attack: To fire] [Reload: 10.0 seconds]"
- 🔹 Reload: "Bazooka reloaded!" (on-screen)
- 🔹 Max Limit: "Maximum Bazookas reached!"
Credits: Plugin by Albin Zm