View unanswered posts | View active topics It is currently Mon Jan 06, 2025 11:34 pm



Reply to topic  [ 3 posts ] 
 Weapon Firing MOs Fires Backwards (Semi-Solved) 
Author Message

Joined: Sat Feb 27, 2010 10:58 pm
Posts: 2
Reply with quote
Post Weapon Firing MOs Fires Backwards (Semi-Solved)
I have made a gun which shoots an MO. Due to how I want the gun to work, it has a high mass and shoots at a great velocity (it's a small rocket fist). This causes large kickback which I don't want. I thought I could get around this the same way the Heavy Sniper does, by having the gun fire a particle which then emits the actual round. It works somewhat, but there is an odd bug.

It works fine when I fire to the right, but when I shoot to the left the MO appears, but it is initially pointing backwards. It then very quickly rotates around (all while moving in the correct direction) until it is facing the direction it should, from which point it acts normally. Has anyone encountered anything like this?


Last edited by Wilson on Mon May 03, 2010 4:18 pm, edited 1 time in total.



Mon May 03, 2010 2:06 pm
Profile
happy carebear mom
User avatar

Joined: Tue Mar 04, 2008 1:40 am
Posts: 7096
Location: b8bbd5
Reply with quote
Post Re: Weapon Firing MOs Fires Backwards
That's a problem with how the face toward velocity variable (the name escapes me atm) works, it sadly has no ini code fix. You'd have to set the facing manually through some trigonometry and Lua to fix it.


Mon May 03, 2010 2:26 pm
Profile

Joined: Sat Feb 27, 2010 10:58 pm
Posts: 2
Reply with quote
Post Re: Weapon Firing MOs Fires Backwards
Ah. All right, cheers for the info.

EDIT: I've found a fix of sorts for the problem. If I set the OrientToVel = 1 rather than 0.8 as it was, this problem does not occur. Obviously this isn't ideal, but for certain instances like mine, it's fine.


Mon May 03, 2010 3:13 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 3 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.046s | 14 Queries | GZIP : Off ]