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:

Code:
public override void OnMapChange() { currmap = GetDvar("mapname"); if (currmap == "mp_radar") { g_speed_var = 190; jump_height_var = 39; fall_damage_var = 1; gravity_var = 800; infammo_var = 1; } else if (currmap == "mp_village") { g_speed_var = 220; jump_height_var = 79; fall_damage_var = 1; gravity_var = 600; infammo_var = 1; } else if (currmap == "mp_seatown") { g_speed_var = 190; jump_height_var = 39; fall_damage_var = 1; gravity_var = 800; infammo_var = 1; } else if (currmap == "mp_bravo") { g_speed_var = 190; jump_height_var = 39; fall_damage_var = 1; gravity_var = 800; infammo_var = 1; } else // if map not defined { g_speed_var = 190; jump_height_var = 39; fall_damage_var = 1; gravity_var = 800; infammo_var = 1; } }

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
Code:
currmap = GetDvar("mapname");
to
Code:
string currmap = GetDvar("mapname");
[Image: azuw.jpg]
Reply

#9
(07-02-2012, 11:36)zxz0O0 Wrote: Change
Code:
currmap = GetDvar("mapname");
to
Code:
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
Code:
set_g_speed(g_speed_var); set_jump_height(jump_height_var); set_g_gravity(gravity_var); if (fall_damage_var == 0) disableFallDamage(); else enableFallDamage();
after
Code:
else // if map not defined { g_speed_var = 190; jump_height_var = 39; fall_damage_var = 1; gravity_var = 800; infammo_var = 1; }
[Image: azuw.jpg]
Reply



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

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2026 Melroy van den Berg.