View unanswered posts | View active topics It is currently Tue Jun 25, 2019 3:00 am



Reply to topic  [ 6 posts ] 
 manual reload question 
Author Message
User avatar

Joined: Tue Jan 12, 2010 8:25 pm
Posts: 400
Location: mukilteo, wa
Reply with quote
Post manual reload question
Is there a way to stop the gun from reloading once the clip is empty till you hit a certain key?


Fri Aug 12, 2011 6:40 am
Profile
User avatar

Joined: Wed Feb 17, 2010 12:07 am
Posts: 1545
Location: That small peaceful place called Hell.
Reply with quote
Post Re: manual reload question
Try this.

Code:
if self:NeedsReloading() then
    self.IsEmpty = true
end


Im not entirely sure if that works though. Having the weapon empty and then clicking is hardcoded to make you reload.


Fri Aug 12, 2011 5:23 pm
Profile
User avatar

Joined: Tue Jan 12, 2010 8:25 pm
Posts: 400
Location: mukilteo, wa
Reply with quote
Post Re: manual reload question
Hard coded you say.... Ok well thanks coops, i downloaded the manual reloading shotgun, i will take a look at its code too.


Fri Aug 12, 2011 7:06 pm
Profile
REAL AMERICAN HERO
User avatar

Joined: Sat Jan 27, 2007 10:25 pm
Posts: 5655
Reply with quote
Post Re: manual reload question
Yeah, it sucks. If you've got a fullauto weapon, and you hold down the fire key, the weapon will loop through the first magazine and auto-reload the second regardless of what you do. If you don't have it fullauto, the transition from 0 rounds to 'reloading' is still hardcoded and instantaneous.


Fri Aug 12, 2011 8:28 pm
Profile
User avatar

Joined: Tue Jan 12, 2010 8:25 pm
Posts: 400
Location: mukilteo, wa
Reply with quote
Post Re: manual reload question
Thanks grif, maybe i will just come up with a different fix then.

The real problem is the gun i have lags the game if you spam too many rounds without detonating them. I thought preventing a new mag from loading till the last was detonated would fix that.


Fri Aug 12, 2011 9:58 pm
Profile
User avatar

Joined: Wed Feb 17, 2010 12:07 am
Posts: 1545
Location: That small peaceful place called Hell.
Reply with quote
Post Re: manual reload question
You could just have the weapon check if there are too many of whatever and disable the weapon if there is, or delete the oldest in simulation of said whatever.


Fri Aug 12, 2011 10:12 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 6 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.016s | 13 Queries | GZIP : Off ]