View unanswered posts | View active topics It is currently Wed Jun 19, 2019 1:01 pm



Reply to topic  [ 3 posts ] 
 Recoil reducing Lua script 
Author Message
User avatar

Joined: Thu Jan 05, 2012 8:18 am
Posts: 76
Location: In a Sauna, roasting to death
Reply with quote
Post Recoil reducing Lua script
Whassup everyone?

This time i'm looking for a way to reduce gun recoil without using AEmitters.
If any of you lua wizards would be so kind to conjure up a script for me, that would be appreciated.

Off-Topic: Is there an Data realms Gmod server up yet?


Sun Oct 14, 2012 11:14 am
Profile
User avatar

Joined: Mon Oct 11, 2010 1:15 pm
Posts: 594
Location: Finlandia
Reply with quote
Post Re: Recoil reducing Lua script
There's a neat new property with HDFirearms as of B27 called RecoilTransmission. It chooses the amount of recoil that applies to the gun & actor.

Though, I have no idea why you'd rather reduce recoil with a script rather than an emitter.

Anyway, add something like this to the gun:

Code:
   ...ReloadTime =
   FullAuto =

   RecoilTransmission = x

   FireIgnoresThis =
   ShakeRange = ...

It reduces / increases recoil percentage, so 0.10 would be 10% of it, 0.50 half, 2 doubled and so on.


Sun Oct 14, 2012 11:40 am
Profile
User avatar

Joined: Thu Jan 05, 2012 8:18 am
Posts: 76
Location: In a Sauna, roasting to death
Reply with quote
Post Re: Recoil reducing Lua script
4zK wrote:
There's a neat new property with HDFirearms as of B27 called RecoilTransmission. It chooses the amount of recoil that applies to the gun & actor.

Though, I have no idea why you'd rather reduce recoil with a script rather than an emitter.

Anyway, add something like this to the gun:

Code:
   ...ReloadTime =
   FullAuto =

   RecoilTransmission = x

   FireIgnoresThis =
   ShakeRange = ...

It reduces / increases recoil percentage, so 0.10 would be 10% of it, 0.50 half, 2 doubled and so on.


Thanks. Weird i didn't notice the recoiltranmission thingy.


Sun Oct 14, 2012 12:02 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 3 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:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.015s | 15 Queries | GZIP : Off ]