View unanswered posts | View active topics It is currently Thu Dec 26, 2024 4:38 pm



Reply to topic  [ 4 posts ] 
 Rotating Weapon Script Needed and more 
Author Message
User avatar

Joined: Tue Jun 12, 2007 11:52 pm
Posts: 13144
Location: Here
Reply with quote
Post Rotating Weapon Script Needed and more
For the first one, I need a script that rotates a weapon when you fire, returns to its original postion when fire is released, and can be attached (the script) to a weapon.

The next script I would like would be attached to a weapon and would change the user's gravity to the direction the user fires the gun. Reloading, dropping, or destroying the gun would reset the user's gravity.


Fri May 29, 2009 9:43 pm
Profile
REAL AMERICAN HERO
User avatar

Joined: Sat Jan 27, 2007 10:25 pm
Posts: 5655
Reply with quote
Post Re: Rotating Weapon Script Needed and more
Can't do anything to a weapon while it's held.


Sat May 30, 2009 1:14 am
Profile
User avatar

Joined: Tue Jun 12, 2007 11:52 pm
Posts: 13144
Location: Here
Reply with quote
Post Re: Rotating Weapon Script Needed and more
I don't mean having the weapon instantly rotate with Rotation = Matrix and added with Lua, I want instead of shooting a particle, the actor who is using the weapon will quickly look down when fire is pressed and look back at its original postion. This will make a melee weapon.


Sat May 30, 2009 6:57 pm
Profile
REAL AMERICAN HERO
User avatar

Joined: Sat Jan 27, 2007 10:25 pm
Posts: 5655
Reply with quote
Post Re: Rotating Weapon Script Needed and more
Then you can't attach that to a weapon.

You could have the particle the weapon fires do it, but not the weapon itself.

Basically you'd be using SetAimAngle twice in rapid sucession. Though that would be an instant set; it'd be better to be setting it constantly to a decent increase. And also, naturally, determining the parent on weapon fire, though you might run into issues with this if it's a melee weapon.

The same problem with weapons vs particles applies to your second script, and that'd probably just require some moderate trigonometry.


Sat May 30, 2009 7:40 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 4 posts ] 

Who is online

Users browsing this forum: No registered users


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.056s | 13 Queries | GZIP : Off ]