Quote:
|
Originally Posted by excaliber7388
Current Problems: (sorry for double post, but I'm stumped and the thread is getting little attention  )
-Sword needs to cut bushes
-Need an 'action' button (lifting pulling)
-needs to check if player is paused/dead
-weaponfired
-swiching weapons (like S+D)
|
For sword needing to cut bushes i could have swore all you need to do is setgani to sword, and the game takes care of the rest. Ex, setting to sword gani will damage another player.
Your origional "centermousebutton" problem is solved really easily, Left, Right....Middle
NPC Code:
If (middlemousebutton) {
you can check if the mousewheel is being scrolled by using mousewheeldelta < .5 or > .5 for up and down.
For paused/dead have fun with that one, I would sugest you take a look at Massokres threads of him having trouble with it as well, probably not to hard to make something to emulate paused at the least since you have redone the entire system. Dead either as far as thats concerned.
Callweapon to call weaponfired on another button press or whatever (pretty sure this should work) just make sure the index is the currently selected weapon.
Same for S+D Weapon switching you could do like currentweapon+1 and set selectedweapon to that, and when it reaches the max (weaponscount) just set it back to the first weapon.
I should really be in bed already i hope some of this helps you out.