Author Topic: Highr Jump?  (Read 2106 times)

Offline Choobie

  • Rank: Private
  • *
  • Posts: 39
Highr Jump?
« on: April 20, 2009, 05:06:44 pm »
Is there any way to config a higher jump on the x4v2?

i have a good jump happening with another mod and it has become very popular.
Just thought you might be able to do the same

Offline OLDPHARTSHaiPing

  • Rank: Private
  • *
  • Posts: 47
Re: Highr Jump?
« Reply #1 on: April 21, 2009, 09:50:48 am »
Jump height is in the PLAYERCONTROL config.  Keep in mind that if you set it to "10" you may have to modify the fall damage which is found in HEALTHCONTROL config.  We set our fall damage to 9999.  :D

Offline stufz

  • Rank: Private
  • *
  • Posts: 302
    • http://theblackduck.net
Re: Highr Jump?
« Reply #2 on: April 21, 2009, 02:17:47 pm »
yea you can but you have to edit a gsc config, so you can SKY JUMP.
its in here somewhere. i'll dig out the link when i get home

Step 1 - increase the height

go to extreme\_ex_varcache.gsc

Change what is in YELLOW below to go higher then 10 with 83 being the max # to have effect

//****************************************************************************
   // X4 jump height
   //****************************************************************************
   if([[level.ex_dvardef]]("ex_jumpheight", 0, 0, 1,"int"))
   {
      maxjumpheight = [[level.ex_dvardef]]("ex_jumpheight_max", 2, 1, 10, "int");
      setDvar("jump_height", maxjumpheight * 12);
   }



Step 2 - enable slowdown so you don't go SPLAT ! on coming down
Right underneath the above script in _ex_varcache.gsc, add the following:


setdvar("jump_slowdownEnable", "0");
if([[level.ex_dvardef]]("ex_jumpslowdown",1,0,1,"int"))
{
setdvar("jump_slowdownEnable", "1");
}

So below is what you want the changes above to look like


Code: [Select]
//****************************************************************************
// X4 jump height
//****************************************************************************
if([[level.ex_dvardef]]("ex_jumpheight", 0, 0, 1,"int"))
{
maxjumpheight = [[level.ex_dvardef]]("ex_jumpheight_max", 2, 1, 83, "int");
setDvar("jump_height", maxjumpheight * 12);
}
setdvar("jump_slowdownEnable", "0");
if([[level.ex_dvardef]]("ex_jumpslowdown",1,0,1,"int"))
{
setdvar("jump_slowdownEnable", "1");
}

Upload this edited gsc file to your gameserver.


Step 3 - add this to your playercontrol.cfg


set ex_jumpslowdown "1" // 1 sets jump_slowdownEnable to 1 -- 0 sets jump_slowdownEnable to 0 --default is 0



Step 4 - set the jump height in playercontrol.cfg - The number in yellow below can be any value with 83 as the max.


// Height in feet
// min = 1, max = 10 (default 2) - max reset to 83 in varcache.gsc
set ex_jumpheight_max "83"


Now up that cfg to your gameserver.  
Restart the server and go check it out.

I had this running and my fall damage in healthcontrol.cfg, was set to 99/100 and we skyed per map's limit.