PDA

View Full Version : [Extension] Velocity



kung foo man
15th May 2013, 11:38
Hey all,

Velocity is damn important for some Call of Duty Mods and Map-Features, but by default the velocity-attribute can't be accessed. With the extension you have full control over the velocity!

Thats leads to nice Mods like: Portal and Surf

The functions are easy to use:



player std\player::setVelocity((0,0,1000)); // players is pushed immediatly to the top


while (1) // kinda jetpack
{
if (player useButtonPressed())
player std\player::addVelocity((0,0,100)); // players is pushed immediatly to the top
}


The surf-algorithm is open-sourced and works well for CoD2 and CoD4: http://killtube.org/downloads/cod2/exampleserver/main/std/surf.gsc

Velocity-functions are declared in this file: http://killtube.org/downloads/cod2/exampleserver/main/std/player.gsc

Regards,
kung foo man