Go Back   CodingForums.com > :: Client side development > Flash & ActionScript

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 11-04-2012, 01:00 AM   PM User | #1
ToffelDjur1
New to the CF scene

 
Join Date: Nov 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
ToffelDjur1 is an unknown quantity at this point
Post NEED HELP ASAP! Garry's mod! (complete noob)

Hello dear coders! i really need help!
i have this mod for Garry's mod that i have been trying to fix since they made a big patch and changed alot in the codings
(the major problem is that i dont even know what type of coding it is but i guess regular c++)
its a gun wich will slow down time when you shoot!
but it doesnt ! and i think i have found where the problem is (THINK!)

function SWEP:PrimaryAttack()

if ( !self:CanPrimaryAttack() ) then return end
(most this part below)
timer.Simple(0, game.ConsoleCommand, "host_timescale 0.03\n")
timer.Simple(0.01, game.ConsoleCommand, "pp_motionblur 1\n")
timer.Simple(1.05, game.ConsoleCommand, "pp_motionblur 0\n")
timer.Simple(1.05, game.ConsoleCommand, "host_timescale 1\n")
timer.Simple(0.35, function() self.OwnerropWeapon(self.Owner:GetActiveWeapon()) end)

self.Weapon:SetNextSecondaryFire( CurTime() + self.Primary.Delay )
self.Weapon:SetNextPrimaryFire( CurTime() + self.Primary.Delay )

if ( !self:CanPrimaryAttack() ) then return end
self.Weapon:EmitSound( self.Primary.Sound )
self:CSShootBullet( self.Primary.Damage, self.Primary.Recoil, self.Primary.NumShots, self.Primary.Cone )
self:TakePrimaryAmmo( 1 )

self.Owner:ViewPunch( Angle( math.Rand(-self.Primary.RecoilXRand,-self.Primary.RecoilXRand) * self.Primary.Recoil, math.Rand(self.Primary.RecoilYRand,-self.Primary.RecoilYRand) *self.Primary.Recoil, 0 ) )


end


i think its the timer.simple whats changed and i have tried alot but i cant find what it should be! pls help if possible and if its coding specialy for the game tell me!

heres the files!
original whole mod folder: http://http://www.garrysmod.org/down...=view&id=70559

the file name where the coding problem is
FolderYouDownloadedTo\DearSister2\lua\weapons\dearsister\shared.lua

Really need help please =)
ToffelDjur1 is offline   Reply With Quote
Reply

Bookmarks

Tags
game, mod, sdk, source, weapon

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 06:21 AM.


Advertisement
Log in to turn off these ads.