Data Realms Fan Forums
http://45.55.195.193/

How to reduce recoil
http://45.55.195.193/viewtopic.php?f=1&t=17689
Page 1 of 2

Author:  Zoroaster [ Fri Jan 29, 2010 4:25 am ]
Post subject:  How to reduce recoil

I remembered that certain weapons can shoot incredible amounts of bullets and such and have barely any recoil.

I wish to diminish the recoil of a weapon- Say, Shook's Slammer Cannon. Is there a kind of code for it that I could possible insert?

Author:  411570N3 [ Fri Jan 29, 2010 5:26 am ]
Post subject:  Re: How to reduce recoil

You could:
Fire an emitter or explosive that emits or gibs (respectively) the wanted bullets.
Change the mass and add Lua that makes the bullet the wanted mass on Create().

Author:  wiffles [ Fri Jan 29, 2010 6:24 am ]
Post subject:  Re: How to reduce recoil

Can't you also make it that you also fire a second particle with negative velocity, or am I thinking of something else?

Author:  TorrentHKU [ Fri Jan 29, 2010 6:40 am ]
Post subject:  Re: How to reduce recoil

You could, I think, but that has some ramifications that are best left unplumbed, such as higher likelyhood of self exploding. The emitter/gibber --> Bulleets idea is usually preferable.

Author:  TheLastBanana [ Fri Jan 29, 2010 7:41 am ]
Post subject:  Re: How to reduce recoil

If you take a look at the sniper rifles in Coalition.rte, they should give you some hints. Both fire an emitter which then fires the actual shot.

Author:  ProjektTHOR [ Fri Jan 29, 2010 1:57 pm ]
Post subject:  Re: How to reduce recoil

Doesn't anyone think its sad that

a) a mechanic as simple as accuracy is so convoluted
b) even a drl dev can't really explain it? (or chooses not to).

Author:  TorrentHKU [ Fri Jan 29, 2010 2:09 pm ]
Post subject:  Re: How to reduce recoil

I think it's much sadder that such a small community has such an annoying troll.
Ontopic: I never knew the Coa snipers used the Emitter>Bullets method. I can't find it in the code anywhere, but what determines how fast something is fired directly from the gun? In this case, how fast the emitter emitting a bullet is going?

Author:  ProjektTHOR [ Fri Jan 29, 2010 2:19 pm ]
Post subject:  Re: How to reduce recoil

It's not trolling, it was commentary on how poorly executed some of these game mechanics are.

Author:  Grif [ Fri Jan 29, 2010 3:55 pm ]
Post subject:  Re: How to reduce recoil

Hyperkultra wrote:
I think it's much sadder that such a small community has such an annoying troll.
Ontopic: I never knew the Coa snipers used the Emitter>Bullets method. I can't find it in the code anywhere, but what determines how fast something is fired directly from the gun? In this case, how fast the emitter emitting a bullet is going?


FireVelocity (whodathunkit)

in the AddAmmo = Round CopyOf = AEmitter code.

Author:  Zoroaster [ Sat Jan 30, 2010 7:01 am ]
Post subject:  Re: How to reduce recoil

Since that way velocity is increased, wouldn't that just make the recoil problem worse? Mass and velocity both combine to form the recoil factor.

As for the firing an EMITTER that fires the shot, I have no clue exactly where it is the Sniper Rifle .ini or how to do it... :???:

Author:  TorrentHKU [ Sat Jan 30, 2010 7:25 am ]
Post subject:  Re: How to reduce recoil

Yes it would make recoil worse, but Grif was telling me what variable controls exit velocity, not suggesting a solution.

Author:  Zoroaster [ Sat Jan 30, 2010 10:40 pm ]
Post subject:  Re: How to reduce recoil

I hate to sound obvious... But could you post a (possible) solution? I tried to increase sharpness and decreasing mass, and that seemed to work, but it still gives me a guilty conscience...

Author:  p3lb0x [ Sat Jan 30, 2010 11:16 pm ]
Post subject:  Re: How to reduce recoil

Code:
function Create(self)
   self.Mass = 1000 (Whatever amount you want here)
end


I believe this small piece of Lua would work but I am not sure

Author:  CaveCricket48 [ Sat Jan 30, 2010 11:18 pm ]
Post subject:  Re: How to reduce recoil

It would.

Author:  Azukki [ Sat Jan 30, 2010 11:30 pm ]
Post subject:  Re: How to reduce recoil

No, it's 'impossible' because he's too lazy to figure out how to implement it, like with the coalition sniper rifle emitter thing.

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