PDA

View Full Version : Modifying speed for just 1 player in a map



pollo
27th April 2014, 14:00
Is it possible to modify just one player's speed? I mean, you can do /g_speed to change everyone's speed, but is it possible to do that on just 1 player? If not, what should I do to make it change?

For example, some players touch a specified trigger and their speed reduce until they stop touching it. (arghghgh bad english, srry :])

Thanks in advance!

serthy
27th April 2014, 15:55
There is no way of modifying the speed of one player by script in CoD2 (setMoveSpeedScale() etc in higher cod's).

U either have to use:
- libcod
- modify 1 weapon file for sprint and give it to the player (look into the sprint_mp weaponfiles out there)

Also it depends:
if you want to move faster, use the methods ive described above,
if you want to slow down a player you could use a shellshock:

shock/slowdown.shock

cg_shock_screenBlendTime "0.001"
cg_shock_screenBlendFadeTime "0.001"

cg_shock_viewKickPeriod "0.75"
cg_shock_viewKickRadius "0.0"
cg_shock_viewKickFadeTime "0.001"

cg_shock_sound "0.0"
cg_shock_soundFadeInTime "0.25"
cg_shock_soundFadeOutTime "2.5"
cg_shock_soundLoopFadeTime "2.0"
cg_shock_soundLoopEndDelay "-1.5"
cg_shock_soundRoomType "generic"
cg_shock_soundDryLevel "1.0"
cg_shock_soundWetLevel "0.50"
cg_shock_soundModEndDelay "-0.75"

cg_shock_volume_auto "1.0"
cg_shock_volume_auto2d "1.0"
cg_shock_volume_menu "1.0"
cg_shock_volume_weapon "1.0"
cg_shock_volume_voice "1.0"
cg_shock_volume_item "1.0"
cg_shock_volume_body "1.0"
cg_shock_volume_local "1.0"
cg_shock_volume_music "1.0"
cg_shock_volume_announcer "1.0"
cg_shock_volume_shellshock "1.0"

cg_shock_mouse "0.0"
cg_shock_mouse_maxpitchspeed "0.0"
cg_shock_mouse_maxyawspeed "0.0"
cg_shock_mouse_sensitivityscale "0.0"
cg_shock_mouse_fadeTime "0.001"

pollo
28th April 2014, 14:03
There is no way of modifying the speed of one player by script in CoD2 (setMoveSpeedScale() etc in higher cod's).

U either have to use:
- libcod
- modify 1 weapon file for sprint and give it to the player (look into the sprint_mp weaponfiles out there)

Also it depends:
if you want to move faster, use the methods ive described above,
if you want to slow down a player you could use a shellshock:

shock/slowdown.shock

cg_shock_screenBlendTime "0.001"
cg_shock_screenBlendFadeTime "0.001"

cg_shock_viewKickPeriod "0.75"
cg_shock_viewKickRadius "0.0"
cg_shock_viewKickFadeTime "0.001"

cg_shock_sound "0.0"
cg_shock_soundFadeInTime "0.25"
cg_shock_soundFadeOutTime "2.5"
cg_shock_soundLoopFadeTime "2.0"
cg_shock_soundLoopEndDelay "-1.5"
cg_shock_soundRoomType "generic"
cg_shock_soundDryLevel "1.0"
cg_shock_soundWetLevel "0.50"
cg_shock_soundModEndDelay "-0.75"

cg_shock_volume_auto "1.0"
cg_shock_volume_auto2d "1.0"
cg_shock_volume_menu "1.0"
cg_shock_volume_weapon "1.0"
cg_shock_volume_voice "1.0"
cg_shock_volume_item "1.0"
cg_shock_volume_body "1.0"
cg_shock_volume_local "1.0"
cg_shock_volume_music "1.0"
cg_shock_volume_announcer "1.0"
cg_shock_volume_shellshock "1.0"

cg_shock_mouse "0.0"
cg_shock_mouse_maxpitchspeed "0.0"
cg_shock_mouse_maxyawspeed "0.0"
cg_shock_mouse_sensitivityscale "0.0"
cg_shock_mouse_fadeTime "0.001"

Yes, I want to slow down a player (it's kinda like a shellshock but without its annoying shock and sound xD)

Thanks for answering, I'll look through it!

serthy
28th April 2014, 15:02
like a shellshock but without its annoying shock and sound
thats exactly what this shellshock does