ItsMods

Full Version: Different !speed on different map?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
it was a quick 20 seconds mockup i so there might be some flaws hehe
(07-02-2012, 12:14)zxz0O0 Wrote: [ -> ]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. }

now getting set_g_speed set_high_jump and set_g_gravity does not exist in the current context.

sorry about this as you can tell total noob at this.
Did you add the code to the speed plugin as @pieter suggested? These functions are in the speed plugin.
(07-02-2012, 12:29)zxz0O0 Wrote: [ -> ]Did you add the code to the speed plugin as @pieter suggested? These functions are in the speed plugin.

yes
pastebin your source or just post it here Tongue
http://pastebin.com/2MXk622p

p.s. i think thats an older plugin (can alter that after) ie: not with current offsets as i dont want it to update as with the new release
if you dont have the current offsets it wont work offcourse..

*edit 1* that doesnt even have the maps in it? :/


*edit 2*

after the mapchecks use:

g_Speed(g_speed_var);
jump_height(jump_height_var);
g_gravity(gravity_var);

if (fall_damage_var == 0)
disableFallDamage();

if youre using the source u just posted as a basis
(07-02-2012, 13:57)pieter Wrote: [ -> ]if you dont have the current offsets it wont work offcourse..

*edit 1* that doesnt even have the maps in it? :/


*edit 2*

after the mapchecks use:

g_Speed(g_speed_var);
jump_height(jump_height_var);
g_gravity(gravity_var);

if (fall_damage_var == 0)
disableFallDamage();

if youre using the source u just posted as a basis

I think i got it Wink just needs some testing ..

Thanks to Pieter and zxz0O0

EDIT..
working a treat thankyou both again + rep both.
what would i need to add for inf ammo on a map?
add the code from nukems source to it Tongue
Pages: 1 2 3