Data Realms Fan Forums
http://45.55.195.193/

Help with weapon code
http://45.55.195.193/viewtopic.php?f=1&t=15412
Page 1 of 1

Author:  fylth [ Wed Jun 17, 2009 10:31 pm ]
Post subject:  Help with weapon code

I've been working on a design of a weapon, and before I even attempt to make it I would like to know if it is possible to make a weapon that has alternate fire, for example if you press a button, such as crouch or tab or something, the way the weapon fires would change. Also if possible is it possible to make it change sprite when you do this (I'm just gonna have a rotated sprite to act like he is holding the weapon differently)

Thankyou :)

Author:  mail2345 [ Wed Jun 17, 2009 10:38 pm ]
Post subject:  Re: Help with weapon code

See my mod.

Not sure about sprite changing, but you can get it by having a check to find the weapon by running a cast MO ray with the position of the bullet and the inversed velocity as a trace line, and attaching a getshitbymos and hitsmos = 0 MO that changes the sprite.

Page 1 of 1 All times are UTC [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/