• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Different !speed on different map?
#1
Is it currently possible to have a mod that can auto set different speed and even jumpheight, to a different map?
it doesn't have to be for every map, but outpost, and mission come to mind.
[Image: b_560_95_1.png]


[Image: b_560_95_1.png]

  Reply
#2
You mean for each map there's a set jumpheight/speed?
Do not take life too seriously. You will never get out of it alive.
[Image: UGPjFJa.jpg]
  Reply
#3
(07-02-2012, 00:28)DidUknowiPwn Wrote: You mean for each map there's a set jumpheight/speed?

yes.
[Image: b_560_95_1.png]


[Image: b_560_95_1.png]

  Reply
#4
Yes it is possible
  Reply
#5
(07-02-2012, 05:04)litgar Wrote: Yes it is possible

anyone who is capable willing to do it please?

cough*
[Image: b_560_95_1.png]


[Image: b_560_95_1.png]

  Reply
#6
just add an if/else check to onmapchanged()

that sets the settings in the Speed plugin Smile

example:

CSHARP Code
  1. public override void OnMapChange()
  2. {
  3. currmap = GetDvar("mapname");
  4.  
  5. if (currmap == "mp_radar")
  6. {
  7. g_speed_var = 190;
  8. jump_height_var = 39;
  9. fall_damage_var = 1;
  10. gravity_var = 800;
  11. infammo_var = 1;
  12. } else if (currmap == "mp_village")
  13. {
  14. g_speed_var = 220;
  15. jump_height_var = 79;
  16. fall_damage_var = 1;
  17. gravity_var = 600;
  18. infammo_var = 1;
  19. } else if (currmap == "mp_seatown")
  20. {
  21. g_speed_var = 190;
  22. jump_height_var = 39;
  23. fall_damage_var = 1;
  24. gravity_var = 800;
  25. infammo_var = 1;
  26. } else if (currmap == "mp_bravo")
  27. {
  28. g_speed_var = 190;
  29. jump_height_var = 39;
  30. fall_damage_var = 1;
  31. gravity_var = 800;
  32. infammo_var = 1;
  33. } else // if map not defined
  34. {
  35. g_speed_var = 190;
  36. jump_height_var = 39;
  37. fall_damage_var = 1;
  38. gravity_var = 800;
  39. infammo_var = 1;
  40. }
  41. }


it really isnt that hard (oh ignore the infammo setting lol)
Had a life, Got a modem..
  Reply
#7
thanks i'll try now Wink

hmm keep getting currmap does not exist in the current content?
[Image: b_560_95_1.png]


[Image: b_560_95_1.png]

  Reply
#8
Change
CSHARP Code
  1. currmap = GetDvar("mapname");

to
CSHARP Code
  1. string currmap = GetDvar("mapname");
[Image: azuw.jpg]
  Reply
#9
(07-02-2012, 11:36)zxz0O0 Wrote: Change
CSHARP Code
  1. currmap = GetDvar("mapname");

to
CSHARP Code
  1. string currmap = GetDvar("mapname");

that sorted out the error, but it's still defaulting to the jumpheight, speed that is set in the speedplugin, which is this..

g_speed_var = Convert.ToInt32(GetServerCFG("SPEEDPLUGIN", "Speed", "220"));
jump_height_var = Convert.ToInt32(GetServerCFG("SPEEDPLUGIN", "JumpHeight", "240"));
fall_damage_var = Convert.ToInt32(GetServerCFG("SPEEDPLUGIN", "FallDamage", "0"));
gravity_var = Convert.ToInt32(GetServerCFG("SPEEDPLUGIN", "Gravity", "800"));
[Image: b_560_95_1.png]


[Image: b_560_95_1.png]

  Reply
#10
Add this
CSHARP Code
  1. set_g_speed(g_speed_var);
  2. set_jump_height(jump_height_var);
  3. set_g_gravity(gravity_var);
  4.  
  5. if (fall_damage_var == 0)
  6. disableFallDamage();
  7. else
  8. enableFallDamage();

after
CSHARP Code
  1. else // if map not defined
  2. {
  3. g_speed_var = 190;
  4. jump_height_var = 39;
  5. fall_damage_var = 1;
  6. gravity_var = 800;
  7. infammo_var = 1;
  8. }
[Image: azuw.jpg]
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Would love to have this speed at home CJGreenLabel 9 3,816 07-31-2013, 16:15
Last Post: AZUMIKKEL
  [Release] Speed Plugin hillbilly 25 65,079 05-06-2013, 18:19
Last Post: Hallla
  Type speed Pozzuh 64 25,617 04-29-2013, 13:42
Last Post: Pozzuh
  speed axis [HARD] Tony. 8 4,557 03-15-2013, 18:40
Last Post: Nekochan
Lightbulb [Release] Different jump Height/speed for each map. hillbilly 17 9,936 03-04-2013, 07:09
Last Post: avj
  Help MW3 HighJump speed plugin broken? MADD_DOGG 3 5,041 02-15-2013, 21:03
Last Post: hillbilly
  Anyone play the Need for Speed games? dylankrajewski 7 4,594 10-27-2012, 15:44
Last Post: Arteq
  [Release] Speed Kills OneUp03 8 9,522 10-15-2012, 09:06
Last Post: choobie
  Speed plugin RADZ1973 8 4,486 09-15-2012, 02:40
Last Post: JariZ
  [Request]  Speed Plugin for zombies [Z00MBY] Alex 13 6,800 05-26-2012, 12:26
Last Post: hillbilly

Forum Jump:


Users browsing this thread: 1 Guest(s)