ItsMods

Full Version: Infected..Jump height set by map?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi, i know you can easily set different height, speed etc, but is it possible to have it so each map has different heights? As some maps suit this more than others.
(03-30-2012, 00:07)hillbilly Wrote: [ -> ]Hi, i know you can easily set different height, speed etc, but is it possible to have it so each map has different heights? As some maps suit this more than others.

Pozzuh has made the jump plugin before and I am sure he can such an option to it in less than 5 minutes

CSHARP Code
  1. //some thing like this will do the trick
  2. public float jump_height_var = 0;
  3. public override void OnMapChange()
  4. {
  5. string mapname = GetDvar("mapname");
  6. mapcfg(mapname);
  7. }
  8. public void mapcfg(string mapname)
  9. {
  10. switch (mapname)
  11. {
  12. case "mp_paris":
  13. jump_height_var = 1;//it can also be read from sv_config file for default jump heights on diffident maps
  14. break;
  15. case "mp_alpha":
  16. jump_height_var = 2;
  17. break;
  18. case "mp_bravo":
  19. jump_height_var = 3;
  20. break;
  21. default:
  22. jump_height_var = 0;
  23. break;
  24. }
  25. }

psConfusedry if I have mistakes
someone call PozzuhWink
Pozzuh has made the jump plugin before and I am sure he can such an option to it in less than 5 minutes

[/quote]

i hope so Wink

will this be made please.
ty
anyone willing to do this please?

2 main plugins issues for me is this and the restart issue if no infected.