razorace Posted February 4, 2003 Share Posted February 4, 2003 What are you trying for designwise? Darth Syrup is correct, VectorNormalize will reduce that pushdir to a simple directional vector. Link to comment Share on other sites More sharing options...
AJL Posted February 4, 2003 Share Posted February 4, 2003 VectorNormalize.... OK hmm... i got to try that... Link to comment Share on other sites More sharing options...
Markaine Posted February 4, 2003 Author Share Posted February 4, 2003 The fall velocity after a force jump. I was wondering if its posible to slow down my fall. But its not so simple, i think. I need to be able to use it not just edit it for the default. Like for instance, I'm starting to fall from force jump, If I keep holding the jump button down, I'll slow up. Let go and its back to normal again. The another part is to make it cost force power. Also I edited push/pull to be a little more powerful. But i don't know if someone gets pushed hard, will they take damage if they collide with something? I saw somewhere about speeddamage, but i don't know if it handles this too. Link to comment Share on other sites More sharing options...
razorace Posted February 4, 2003 Share Posted February 4, 2003 If you're talking about what I think you're talking about. Speeddamage is for dealing damage in two situations: 1. hitting your head while using Force Jump. 2. colliding with something while using Force Speed. This is currently disabled. Link to comment Share on other sites More sharing options...
Markaine Posted February 4, 2003 Author Share Posted February 4, 2003 OK, well what do you think about the my other idea on falling? Think it'll be to hard to code? Link to comment Share on other sites More sharing options...
razorace Posted February 5, 2003 Share Posted February 5, 2003 mmmm....not sure. I haven't messed with the force powers much. Just a guess but it might be easy to do if you just remove the ground check for Force Jump. Link to comment Share on other sites More sharing options...
Azymn Posted February 5, 2003 Share Posted February 5, 2003 It would be very easy. Everything you'd need to change would be in bg_pmove.c There are several ways you can do it. Search for pm->cmd.upmove to get an idea of how you can rig it when holding/not holding the button. Link to comment Share on other sites More sharing options...
Markaine Posted February 5, 2003 Author Share Posted February 5, 2003 I still can't figure it out... It seems like if I change something in: pm->ps->velocity[2] = (forceJumpHeight[pm-> ps->fd.forcePowerLevel[FP_LEVITATION]]-curHeight)/forceJumpHeight[pm->ps->fd.forcePowerLevel[FP_LEVITATION]]*forceJumpStrength[pm->ps->fd.forcePowerLevel[FP_LEVITATION]];//JUMP_VELOCITY; "pm->ps->velocity[2] /= 10; pm->ps->velocity[2] += JUMP_VELOCITY; pm->ps->pm_flags |= PMF_JUMP_HELD;" } Is this what you meant? Link to comment Share on other sites More sharing options...
Azymn Posted February 5, 2003 Share Posted February 5, 2003 You're heading the right direction. Link to comment Share on other sites More sharing options...
Markaine Posted February 9, 2003 Author Share Posted February 9, 2003 How would you code force absorb to drain the the attacker's force after being attacked by lightning for awhile? Lets say I'm being hit by lightning, if i hit force absorb, it will deplete their force power like for drain. But "not" immediately. If i cut and paste some of the force drain code, what should i cut and where should i paste? Link to comment Share on other sites More sharing options...
razorace Posted February 9, 2003 Share Posted February 9, 2003 most of the force power stuff in handled in w_force.c. I don't want to be rude but we're not here to do your work for you. Asking questions about the code AFTER you've looked thru it is more approprate. Link to comment Share on other sites More sharing options...
Markaine Posted February 9, 2003 Author Share Posted February 9, 2003 Originally posted by razorace I don't want to be rude but ........ You're right...But all of my questions weren't asking for a full code for me to copy. I just need to know where, like above *this* line or under.... No, you're not being rude...From my first post about lightning to 60 replies later? I thought this would get moved to the request section by now. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.