Page 1 of 1
Making Jump take away Aux Power?
Posted: Mon Dec 04, 2006 4:40 pm
Posted: Mon Dec 04, 2006 6:01 pm
Posted: Fri Dec 08, 2006 10:12 pm
There aren't any functions in that file that look like they are related to jump.
I think a starting point for this might be in gamemovement.cpp in the function bool CGameMovement::CheckJumpButton( void ), but I'm not sure how I can get it to A) check to see if the player has a certain amount of suit power before jumping and B) decrease suit power by fixed amount when player jumps
Posted: Sat Dec 09, 2006 3:18 pm
edited, my suggestion was crap
Posted: Sat Dec 09, 2006 4:12 pm
In my previous post i directed you to the code associated with how something is using the aux power. In posting those links you were supposed to look at the code and see further into how things like sprinting or the flash light use the aux power.
Most of this is driven by motivation. If you want to make your game come to fruition you cant just follow tutorials and hope it kinda works. You have to put some time into the things you want for your game.
Posted: Sun Dec 10, 2006 7:52 am
I was looking into this earlier this year. What I thought the best way was to use the jump code from the sdk and not hl2mp. In sdk code jump is defined seperately, much like sprinting and flashlight. In mp jump is integrated into the whole codebase. Again this was just my thought and not a final answer. The deal with coding, you review the code, think of different ways it could possibly be changed and then make backups and try it.
Posted: Sun Dec 10, 2006 11:02 pm
I understand that motivation and effort is required, that is not the problem. I'm not asking for anyone to do this for me, but I am hoping that someone can point me in the right direction and generally make things easier for me.
I only recently learned C, and I'm new to C++, so I don't know a whole lot about classes yet. The code that relates to suit power in c_hl2mp_player.cpp can't be applied to the jump code in gamemovement.cpp. I've spent hours trying different things with it, but the compiler gives me some errors about suitpower not being part of the game movement class.
I have no idea how I would go about putting anything relating to suitpower into gamemovement.cpp where all the jump stuff is. Baer's suggestion seems to make sense though, I will take a look at the from-scratch SDK jump code and see what I can do with that.
Posted: Sun Dec 10, 2006 11:58 pm
I am pretty swamped at the moment, but i can begin looking into this to help you out. At first glace there are functions in the player class that are handing off the jumping to the movement so it might be a good place to start.
Ill b back in a little bit, once im done posting my filecreator app on the wiki
Posted: Mon Dec 11, 2006 1:44 pm
Sorry i didnt get back to you last night, i was caught up in debugging an app and i didnt get any time to do the searching i needed to. I have an exam tonight so i probably wont do a whole lot of anything tonight either, but i will get on this when i get a chance.
Bear with me.
Posted: Mon Dec 11, 2006 5:01 pm
Posted: Mon Dec 11, 2006 10:20 pm
Posted: Tue Dec 12, 2006 12:41 pm
Posted: Tue Dec 12, 2006 10:38 pm
Posted: Wed Dec 20, 2006 11:58 am
Posted: Wed Dec 20, 2006 12:09 pm
Posted: Wed Dec 20, 2006 5:57 pm
Posted: Sat Dec 23, 2006 5:01 pm