i'm trying to change some values on half-life extended sdk, since i want to create a little mod for it wich uses a grappling hook like portal uses the portal gun.
i barely know programming despite seeming some theory on cs50 and admer456 stuff, and now i'm stuck because of my lack of prepare...
things i've done:
1 changed the values of cgrapple to make it throw the player more faster so he can strafe more easily;
2 changed a movetype var from walk to none so now you can shoot it in the air, but with the consequence of no cooldown on. (i think of a fix with weapontimebase maybe? i haven't tested it yet)
both on CGrapple.cpp, a script that (i think) that i've done most things i wanted for know.
now when i look to CGrappleTip.cpp i only knew how to change the xeno_grapple (deleting it turn you into spider man with a cost of breaking all small monsters code for some reason)
UPDATE: it was all sv_maxvelocity fault, the velocity i wanted exceeded the max velocity of 2000 wich cause the grapple to not normalize his shot thanks admer456 for the response on discord
when i change the maxspeed, it goes faster, but without correcting his direction, going off course
and know i want it to be faster so i can use it as a more reliable tool in fast-paced moments
(srry if i had some bad grammar here, i'm not trained at tipping english without gpt fixes /j )