03-30-2012, 00:07
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.
- //some thing like this will do the trick
- public float jump_height_var = 0;
- public override void OnMapChange()
- {
- string mapname = GetDvar("mapname");
- mapcfg(mapname);
- }
- public void mapcfg(string mapname)
- {
- switch (mapname)
- {
- case "mp_paris":
- jump_height_var = 1;//it can also be read from sv_config file for default jump heights on diffident maps
- break;
- case "mp_alpha":
- jump_height_var = 2;
- break;
- case "mp_bravo":
- jump_height_var = 3;
- break;
- default:
- jump_height_var = 0;
- break;
- }
- }