Results 1 to 4 of 4

Thread: Modifying speed for just 1 player in a map

  1. #1
    Private pollo's Avatar
    Join Date
    Jul 2012
    Location
    Spain
    Posts
    116
    Thanks
    93
    Thanked 69 Times in 35 Posts

    Modifying speed for just 1 player in a map

    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!

  2. #2
    Sergeant serthy's Avatar
    Join Date
    Nov 2012
    Posts
    450
    Thanks
    96
    Thanked 296 Times in 188 Posts
    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
    Code:
    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"

  3. The Following User Says Thank You to serthy For This Useful Post:

    pollo (28th April 2014)

  4. #3
    Private pollo's Avatar
    Join Date
    Jul 2012
    Location
    Spain
    Posts
    116
    Thanks
    93
    Thanked 69 Times in 35 Posts
    Quote Originally Posted by serthy View Post
    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
    Code:
    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!

  5. #4
    Sergeant serthy's Avatar
    Join Date
    Nov 2012
    Posts
    450
    Thanks
    96
    Thanked 296 Times in 188 Posts
    Quote Originally Posted by pollo View Post
    like a shellshock but without its annoying shock and sound
    thats exactly what this shellshock does

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •