Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Release Custom Spread DVar
#1
ideal to prevent hipfire spray etc...
PHP Code:
customrecoil()
{
    while(
1)
{
    
self waittill "weapon_fired" );
currentweapon self GetCurrentWeapon();
        {
        
self setClientDvar("perk_weapSpreadMultiplier"0.20);
        
wait 0.05;
        
self setClientDvar("perk_weapSpreadMultiplier"0.22);
        
wait 0.01;
        
self setClientDvar("perk_weapSpreadMultiplier"0.24);
        
wait 0.01;
        
self setClientDvar("perk_weapSpreadMultiplier"0.26);
        
wait 0.01;
        
self setClientDvar("perk_weapSpreadMultiplier"0.28);
        
wait 0.01;
        
self setClientDvar("perk_weapSpreadMultiplier"0.30);
        
wait 0.01;
        
self setClientDvar("perk_weapSpreadMultiplier"0.32);
        
wait 0.01;
        
self setClientDvar("perk_weapSpreadMultiplier"0.33);
        
wait 0.01;
        
self setClientDvar("perk_weapSpreadMultiplier"0.34);
        
wait 0.01;
        
self setClientDvar("perk_weapSpreadMultiplier"0.35);
        
wait 0.01;
        
self setClientDvar("perk_weapSpreadMultiplier"0.36);
        
wait 0.01;
        
self setClientDvar("perk_weapSpreadMultiplier"0.37);
        
wait 0.01;
        
self setClientDvar("perk_weapSpreadMultiplier"0.38);
        
wait 0.01;
        
self setClientDvar("perk_weapSpreadMultiplier"0.40);
        
wait 0.01;
        
self setClientDvar("perk_weapSpreadMultiplier"0.41);
        
wait 0.01;
        
self setClientDvar("perk_weapSpreadMultiplier"0.42);
        }
}

Reply

#2
Sweet code !!

Ill move it to tutorials!
--
Reply

#3
ok, i want that the effect ends when i stop shooting
is this possible?!
Reply

#4
This changes recoil or spread???? Huh
Reply

#5
(05-30-2011, 15:41)Yamato Wrote: This changes recoil or spread???? Huh

(no ADS in my mod Smile)
(05-30-2011, 15:40)qontrixz Wrote: ok, i want that the effect ends when i stop shooting
is this possible?!

no one?
Reply

#6
Just wondering, does self waittill ( "weapon_fired" ); run when you click or just every time you shoot a bullet?
(08-10-2011, 12:58)Pozzuh Wrote:
Se7en Wrote:Stealed, from cod4 mod ...
look who's talking

[Release] Old School Mod v2.2
[Release] Scroll menu

Reply

#7
(05-30-2011, 16:44)iAegle Wrote: Just wondering, does self waittill ( "weapon_fired" ); run when you click or just every time you shoot a bullet?
Everytime when i click it runs the full code (the crosshairs goes mad)
Reply

#8
(05-30-2011, 16:44)iAegle Wrote: Just wondering, does self waittill ( "weapon_fired" ); run when you click or just every time you shoot a bullet?

It happens after you fired a bullet.
YouTube 1:Azumikkel- Modding
YouTube 2:DerpShark- Gaming Entertainment
Website:Jensby.me
Contact: im[at]jensby.me
Reply

#9
delete this topic please Smile
Reply

#10
(05-30-2011, 17:28)qontrixz Wrote: delete this topic please Smile

Why?
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  Black Ops 2 Custom background? jotape99 10 12,388 10-29-2013, 07:22
Last Post: xInfinity.
  Custom xanims DidUknowiPwn 8 7,030 08-28-2013, 08:17
Last Post: RaZ
  Help Make ac130 shoot custom bullets Ra3shed 0 2,718 07-23-2013, 13:02
Last Post: Ra3shed
  [Tutorial] Custom gametype HUD iAegle 17 15,248 07-14-2013, 01:16
Last Post: Nekochan
Video Custom Facepaints? Cuddlyedits 5 4,513 07-01-2013, 14:58
Last Post: iPaddie
  Help dedicated servers and custom dvars mattyman 0 2,503 06-22-2013, 07:33
Last Post: mattyman
  [Release] -InSaNe-'s DVAR Console dylankrajewski 41 25,087 06-16-2013, 14:50
Last Post: lark
Information [Tutorial] Adding DLC Maps as Custom Maps. Nekochan 151 154,104 05-25-2013, 01:05
Last Post: Nero Z zero
  QS Mod by GeKKo v 6.5 with Custom Maps GeKKoFL0X 35 30,480 05-21-2013, 19:30
Last Post: [HARD] Tony.
  [Request] custom gun mod ColorCorrects 2 3,145 05-18-2013, 22:19
Last Post: mitchhacker

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.