[Release] Hight jump zone
-
I wrote a small script to diversify the infection server
At first I wanted to make MapEdit, but so far it’s unrealistic ( i don’t know C++ and how to look for the necessary offsets)Before declaring me a thief, I’ll say that this is a piece of my code converted to ChaiScript, I just used fragments of QBots, because I don’t know the full syntax of Chai...
Script can be work on dedicate server/private match
https://www.youtube.com/watch?v=7v5MURmKecM
global dev_mode = false; global jump_zones = []; level.onNotify("prematch_done", fun(arguments) { switch(gsc.getDvar("mapname")) { case("mp_paris") { createJumpZone([-1036.623, -739.0071, 145.1301], [0, 0, 1250]); createJumpZone([-1888.126, 632.3943, 289.125], [-250, 0, 1150]); break; } } }); level.onNotify("connected", fun(arguments) { var player = arguments[0]; var distance = 0; player.notifyOnPlayerCommand("jump_action", "+activate"); player.onNotify("jump_action", fun[player](arguments) { if(dev_mode) { print(player.getOrigin()); print(player.getPlayerAngles()); } for(var index = 0; index < size(jump_zones); ++index) { if(gsc.distance(player.getOrigin(), jump_zones[index].getOrigin()) < 175 && player.isOnGround() == 1) { // i trying create jump script, but notify damage can't return MOD_DAMAGE..., // pluto-framework can fix it(pluto-framework can handling damage) player.setVelocity(jump_zones[index].get("impulse")); player.iPrintLnBold("I belive, i can fly"); break; } } }) }); def createJumpZone(position, impulse) { var zone = gsc.spawn("script_model", position); zone.setModel("weapon_c4_bombsquad"); zone.setCursorHint("HINT_NOICON"); zone.setHintString("Press and hold ^1[{+activate}] ^7for jump"); zone.makeUsable(); zone.set("impulse", impulse); jump_zones.push_back_ref(zone); return zone; }
How to install:
jump.chai
send jump.chai in "...\AppData\Local\Plutonium\storage\iw5\scripts"How to get pos:
global dev_mode = false; // change false to true
use mode spectator and pressing F (or other button with bind +activate) for show origin and angles on console
How to add new maps:
find it:switch(gsc.getDvar("mapname")) { case("mp_paris") { createJumpZone([-1036.623, -739.0071, 145.1301], [0, 0, 1250]); createJumpZone([-1888.126, 632.3943, 289.125], [-250, 0, 1150]); break; }
and add new case (this is example):
case("mp_dome") { createJumpZone([0, 0, -350], [0, 0, 99999]); break; } // origin is vector3 [X, Y, Z] (you can check needs origin with enabled dev mode) // jump_impulse is vector3 [X, Y, Z] createJumpZone(origin, jump_impulse);
-
I actually like this I am going to run this in my server thank you for this
-
This post is deleted!
-
This post is deleted!
-
FragsAreUs nvm fixed it by removing the } on line 14
-
FragsAreUs said in [Release] Hight jump zone:
FragsAreUs nvm fixed it by removing the } on line 14
Thanks for the comment, I fixed the shared file
P.S. there is no such error in the source code attached to the post -
use mode spectator and pressing F (or other button with bind +activate) for show origin and angles on console
how to activate this ?
-
global dev_mode = true;
on server/private match use F (or your bind +activate) and see console
-
precisely in the script there and on true. but on the game I am not the position
possible to have screenshot
? -
zyrox-tech
of course(sorry for "FULL HD 4K" Quality)
-
This post is deleted!
-
S3VDITO all working good for me i have custom a map with like 7 tp and 1 jump now i need to know how can i create like a wall or a floor
-
TTV_WIZEQC
I try make it, but -
S3VDITO well dont worry here soon there will be actual gsc support for mw3 but you have to give it some time
-
soon
You can already start working on your GSC skills.
-
Xerxes early access? 🥺
-
Everything that is needed to recreate that screenshot is public.
Just don't expect anyone to spoonfeed or even attempt to help you. -
This post is deleted!
-
as of right now chi has been removed from mw3 that is why its not working we now have everything running under gsc
-
FragsAreUs so how would I put the chai script into a gsc language? I’m new to scripting....