Source SDK

Source SDK

Yuyucat 10 Okt 2015 @ 12:55pm
Disabling jump
I am making a singpleplayer mod in Source SDK 2013 and I would like to know how to disable jumping via code.
< >
Menampilkan 1-10 dari 10 komentar
BerntA 10 Okt 2015 @ 4:42pm 
return early in CheckJumpButton() in gamemovement.cpp
Yuyucat 10 Okt 2015 @ 9:57pm 
Care to explain?
BerntA 16 Okt 2015 @ 8:52am 
void CGameMovement::CheckJumpButton() { return; // code goes here. }

or

void CGameMovement::CheckJumpButton() { // comment out the code }
Terakhir diedit oleh BerntA; 16 Okt 2015 @ 8:52am
Yuyucat 20 Des 2015 @ 2:31pm 
Sorry for necroing, but the returning early did not work
SpAM_CAN 3 Jan 2016 @ 3:41pm 
Check CHLGameMovement or something, there might be a similar CheckJumpButton function. Alternatively, find in_main and get rid of all the IN_Jump stuff.
Yuyucat 3 Jan 2016 @ 4:25pm 
Got it working, thanks everybody
JackS 15 Jul 2017 @ 10:06pm 
How Exactly did you get it working, I am also trying to disable jumping
Yuyucat 15 Jul 2017 @ 11:05pm 
In the code I just removed the jump code attached to the jump button. And made sure to even delete other events jumped to the jump event, but left it where the spacebar code was still there.
JackS 16 Jul 2017 @ 10:23am 
Ok that worked, thanks so much
JackS 16 Jul 2017 @ 10:49am 
By any chance doany of your know how i would do the same for sprinting?
< >
Menampilkan 1-10 dari 10 komentar
Per halaman: 1530 50