Balloon
Allows players to release a hydrogen filled balloon doggie that floats slowly up in the air. Explodes after 5 seconds (configurable) or when shot. Almost every paramater can be changed by convar. To damage another player, you'll probably have to shoot the balloon or release it in a hallway/room where the ceiling will hold it down near the players.
This should work on DOD:S also, but you'll have to use a different model (the balloon animal is a TF2 standard model).
[IMG]http://img136.**************/img136/1416/cpdustbowl0083cl2.jpg[/IMG]
[IMG]http://img136.**************/img136/cpdustbowl0083cl2.jpg/1/w800.png[/IMG]
Requirements:
Requires
the Dukehacks extension version 0.0.1.9 or greater.
Client commands:
Console:
sm_balloon to release a balloon
or
bind "h" "sm_balloon" in console to bind a key (h in this example)
Say:
!balloon in chat to release a balloon
Convars:
PHP Code:
FORMAT:
convar_name default_value
- description
sm_balloon_radius 256
- radius of explosion
sm_balloon_damage 100.0
- damage dealt on explosion
sm_balloon_hspeedmult 0.98
- drag multiplier (1.0 to not slow down horizontal speed
sm_balloon_hspeed 300.0
- initial horizontal speed of balloon
sm_balloon_vspeed 80.0
- vertical speed of balloon
sm_balloon_life 5.0
- how long before balloon explodes (in seconds)
sm_balloon_delay 30.0
- how often players can release a balloon (in seconds)
sm_balloon_mdl "models/player/gibs/gibs_balloon.mdl"
- balloon model name
sm_balloon_version 0.0.1.9
- plugin version
Notes:
This plugin was created as a quick example of how to use the dukehacks extension to modify physics entity movement. If anyone wants to expand on it please feel free to improve/modify/reuse the code.
Download:
Requires
the Dukehacks extension version 0.0.1.9 or greater.