View Single Post
  #4  
Old 11-29-2009, 06:19 AM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
You could use onWeaponFired instead of onKeyPressed in cbk's example as well I believe, so if you have multiple guns it won't fire them at the same time.

Using key == keyname(4) instead of key == "d" would be better to use as well, so it's re-mappable by players.
__________________
Quote:
Reply With Quote