View unanswered posts | View active topics It is currently Thu Jan 09, 2025 11:37 pm



Reply to topic  [ 2 posts ] 
 Help with weapon code 
Author Message
User avatar

Joined: Sun Jan 18, 2009 12:24 pm
Posts: 96
Reply with quote
Post 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 :)


Wed Jun 17, 2009 10:31 pm
Profile
User avatar

Joined: Tue Nov 06, 2007 6:58 am
Posts: 2054
Reply with quote
Post 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.


Wed Jun 17, 2009 10:38 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: Google [Bot]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.023s | 14 Queries | GZIP : Off ]