Thread: Jump Pads
View Single Post
Author Message
L. Duke
Veteran Member
Join Date: Apr 2005
Location: Walla Walla
Old 10-10-2008 , 10:29   Jump Pads
Reply With Quote #1

Jump Pads
players can drop a jump pad

This should work for TF2 and DODS. On TF2, this plugin will allow heavies and other classes to reach places usually only accessible to soldiers and demos.

(Thanks to tintinibar for the report that the plugin does work on DODS.)

Requires the Dukehacks extension version 0.0.1.5 or greater.

Client Commands

Say !jumppad
in chat or
bind "f" "sm_jumppad"
in console, where f is any valid key.


ConVars


"sm_jp_hmult" = "1.5"
- horizontal speed multiplier to apply to player on jump
"sm_jp_vspeed" = "800.0"
- vertical speed to apply to player on jump
"sm_jp_life" = "30.0"
- time before unused jumppads are removed (in seconds)
"sm_jp_delay" = "15.0"
- how often players can drop a jump pad (in seconds)

Notes

This was created as an example of the Touch hook in the Dukehacks extension. One way this hook can be used is to create items that can be picked up such as powerups, jump pads, health packs, ammo packs, etc. Feel free to modify this code however you wish and to post in the new plugin section.

Download
Requires the Dukehacks extension version 0.0.1.5 or greater.
Attached Files
File Type: sp Get Plugin or Get Source (dhjumppad.sp - 804 views - 5.0 KB)
File Type: smx dhjumppad.smx (4.8 KB, 848 views)
__________________
"Good grammar is essential, Robin."
- Batman

Last edited by L. Duke; 10-11-2008 at 11:32.
L. Duke is offline