Thread Rating:
  • 2 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Release Different jump Height/speed for each map.
#1
Lightbulb 
Ok i have just edited the speed plugin, to add different jump/speed/gravity on each map if you so wished.

Credits @Pozzuh for the original speed plugin code, @pieter & @zxz0O0 for the code to get it to work. (Thanks guys your help is always appreciated)

There is no way to alter this except via C# as i had no idea how to add it in the sv_config.

Anyway the defaults are as follows, with the !jumpheight edited to !jh for easier/faster activation, !gravity is now !grav rest is the same. I have included the .dll so you can get an idea of what you can do with the speed/jumpheight etc.

I was gonna post the whole code for the plugin, but it's just a case of adding this code and setting the speed etc that you want.

Code:
public override void OnMapChange()
        {
            string currmap = GetDvar("mapname");

            if (currmap == "mp_radar")
            {
                g_speed_var = 265;
                jump_height_var = 245;
                fall_damage_var = 0;
                gravity_var = 800;
                
            }
            else if (currmap == "mp_village")
            {
                g_speed_var = 235;
                jump_height_var = 250;
                fall_damage_var = 0;
                gravity_var = 800;
              
            }
            else if (currmap == "mp_seatown")
            {
                g_speed_var = 235;
                jump_height_var = 260;
                fall_damage_var = 0;
                gravity_var = 800;
                
            }
            else if (currmap == "mp_bravo")
            {
                g_speed_var = 255;
                jump_height_var = 305;
                fall_damage_var = 0;
                gravity_var = 800;
            }
            else if (currmap == "mp_exchange")
            {
                g_speed_var = 228;
                jump_height_var = 130;
                fall_damage_var = 0;
                gravity_var = 800;
            }

            else if (currmap == "mp_underground")
            {
                g_speed_var = 255;
                jump_height_var = 255;
                fall_damage_var = 0;
                gravity_var = 800;
            }
            else if (currmap == "mp_dome")
            {
                g_speed_var = 265;
                jump_height_var = 240;
                fall_damage_var = 0;
                gravity_var = 800;
            }
            else if (currmap == "mp_paris")
            {
                g_speed_var = 257;
                jump_height_var = 265;
                fall_damage_var = 0;
                gravity_var = 800;
            }
            else if (currmap == "mp_plaza2")
            {
                g_speed_var = 230;
                jump_height_var = 210;
                fall_damage_var = 0;
                gravity_var = 800;
            }
            else if (currmap == "mp_carbon")
            {
                g_speed_var = 245;
                jump_height_var = 265;
                fall_damage_var = 0;
                gravity_var = 800;
            }
            else if (currmap == "mp_aground_ss")
            {
                g_speed_var = 245;
                jump_height_var = 310;
                fall_damage_var = 0;
                gravity_var = 800;
            }
            else if (currmap == "mp_alpha")
            {
                g_speed_var = 225;
                jump_height_var = 140;
                fall_damage_var = 0;
                gravity_var = 800;
            }
            else // if map not defined
            {
                g_speed_var = 226;
                jump_height_var = 245;
                fall_damage_var = 0;
                gravity_var = 800;

            }
            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();
        }


Attached Files
.rar   test speed.rar (Size: 4.07 KB / Downloads: 167)
[Image: b_560_95_1.png]


[Image: b_560_95_1.png]

Reply

#2
how the hell...o.O
How do I use this? Sad do I need to compile this?
Reply

#3
(07-30-2012, 00:53)pollarpart Wrote: how the hell...o.O
How do I use this? Sad do I need to compile this?

yes, just add it to the speed plugin, as it seems someone has deleted the edited one i uploaded.
[Image: b_560_95_1.png]


[Image: b_560_95_1.png]

Reply

#4
I have no idea how to do that...
Reply

#5
this would be cool to have cause i would like the jump to be higher on some maps then others but i have no clue on what to do. Do i copy and paste it some where and make my own settings or what im clueless on this sorry. Hillbilly is there a way to make the maps play in order with out repeating until all the maps have played? the random map rotation sucks idk why they would have them this way thanks in advance
[Image: b_560_95_1.png]
Reply

#6
(12-19-2012, 17:10)MADD_DOGG Wrote: this would be cool to have cause i would like the jump to be higher on some maps then others but i have no clue on what to do. Do i copy and paste it some where and make my own settings or what im clueless on this sorry. Hillbilly is there a way to make the maps play in order with out repeating until all the maps have played? the random map rotation sucks idk why they would have them this way thanks in advance

Edit the values for every map in the code and send it to me, i can compile it for you.
Reply

#7
(12-19-2012, 17:19)8q4s8 Wrote:
(12-19-2012, 17:10)MADD_DOGG Wrote: this would be cool to have cause i would like the jump to be higher on some maps then others but i have no clue on what to do. Do i copy and paste it some where and make my own settings or what im clueless on this sorry. Hillbilly is there a way to make the maps play in order with out repeating until all the maps have played? the random map rotation sucks idk why they would have them this way thanks in advance

Edit the values for every map in the code and send it to me, i can compile it for you.

but will i be able to make changes to if later?
[Image: b_560_95_1.png]
Reply

#8
There's no need to have a bad rotation, just use this is your sv_config, and just add the rotation you want, you will obviously have to setup the .dsr maps first and copy them into your server Admin folder.

OldRotation=1
OldRotationVal=playlist village map mp_village playlist seatown map mp_seatown etc etc

Speed....

Unless all the maps and their setting are done for the sv_config, the only way you will be able to edit it, will be to compile it again after editing it. Not including using the cmd of course ie: !jh 200 etc. As @8q4s8 has said he/i can easily edit if for you but only by using M$ Studio.
[Image: b_560_95_1.png]


[Image: b_560_95_1.png]

Reply

#9
I added the sv_config stuff in the plugin. It's using the offsets from @hillbilly so you don't have to update it yourself Wink.

Add this to your sv_config file and edit the values.
Code:
[SPEEDPLUGIN]
Speed=280
JumpHeight=39
FallDamage=0
Gravity=800

mp_alpha_speed=200
mp_alpha_jh=300
mp_alpha_gravity=500
mp_alpha_falldmg=0

mp_bravo_speed=200
mp_bravo_jh=300
mp_bravo_gravity=500
mp_bravo_falldmg=0

mp_bootleg_speed=200
mp_bootleg_jh=300
mp_bootleg_gravity=500
mp_bootleg_falldmg=0

mp_carbon_speed=200
mp_carbon_jh=300
mp_carbon_gravity=500
mp_carbon_falldmg=0

mp_dome_speed=200
mp_dome_jh=300
mp_dome_gravity=500
mp_dome_falldmg=0

mp_exchange_speed=200
mp_exchange_jh=300
mp_exchange_gravity=500
mp_exchange_falldmg=0

mp_hardhat_speed=200
mp_hardhat_jh=300
mp_hardhat_gravity=500
mp_hardhat_falldmg=0

mp_interchange_speed=200
mp_interchange_jh=300
mp_interchange_gravity=500
mp_interchange_falldmg=0

mp_lambeth_speed=200
mp_lambeth_jh=300
mp_lambeth_gravity=500
mp_lambeth_falldmg=0

mp_mogadishu_speed=200
mp_mogadishu_jh=300
mp_mogadishu_gravity=500
mp_mogadishu_falldmg=0

mp_paris_speed=200
mp_paris_jh=300
mp_paris_gravity=500
mp_paris_falldmg=0

mp_plaza2_speed=200
mp_plaza2_jh=300
mp_plaza2_gravity=500
mp_plaza2_falldmg=0

mp_radar_speed=200
mp_radar_jh=300
mp_radar_gravity=500
mp_radar_falldmg=0

mp_seatown_speed=200
mp_seatown_jh=300
mp_seatown_gravity=500
mp_seatown_falldmg=0

mp_underground_speed=200
mp_underground_jh=300
mp_underground_gravity=500
mp_underground_falldmg=0

mp_village_speed=200
mp_village_jh=300
mp_village_gravity=500
mp_village_falldmg=0

mp_terminal_speed=200
mp_terminal_jh=300
mp_terminal_gravity=500
mp_terminal_falldmg=0

mp_aground_speed=200
mp_aground_jh=300
mp_aground_gravity=500
mp_aground_falldmg=0

mp_erosion_speed=200
mp_erosion_jh=300
mp_erosion_gravity=500
mp_erosion_falldmg=0

too much code

I didn't test the plugin, please tell me if something doesn't work.

+rep? Big Grin


Attached Files
.zip   SpeedPlugin.zip (Size: 5.24 KB / Downloads: 69)
Reply

#10
Thanks HillBilly and 8q4s8
[Image: b_560_95_1.png]
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  Would love to have this speed at home CJGreenLabel 9 4,278 07-31-2013, 16:15
Last Post: AZUMIKKEL
  jump higher kerm007 9 5,019 07-29-2013, 10:16
Last Post: Arteq
  [Release] Speed Plugin hillbilly 25 75,601 05-06-2013, 18:19
Last Post: Hallla
  Type speed Pozzuh 64 29,429 04-29-2013, 13:42
Last Post: Pozzuh
Question [Request] Permanent UAV Plugin for Private Hight Jump Infected Server Paxton 7 4,606 04-02-2013, 15:32
Last Post: 99IRock
  speed axis [HARD] Tony. 8 5,108 03-15-2013, 18:40
Last Post: Nekochan
  Help MW3 HighJump speed plugin broken? MADD_DOGG 3 5,394 02-15-2013, 21:03
Last Post: hillbilly
Question Help Super jump koro35 1 2,721 11-19-2012, 16:53
Last Post: Pozzuh
  Anyone play the Need for Speed games? dylankrajewski 7 5,017 10-27-2012, 15:44
Last Post: Arteq
  [Release] Speed Kills OneUp03 8 9,981 10-15-2012, 09:06
Last Post: choobie

Forum Jump:


Users browsing this thread:
1 Guest(s)

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