Aide changement de temps de rechargement [Weapon]

  • Initiateur de la discussion
ZenitHD

ZenitHD

Geek suprême
Messages
212
Score réaction
27
Points
130
Bonjour/Bonsoir je voudrais savoir comment changer le temps de rechargement d'un weapon qu'il recharge directement après avoir tirer :

Code:
-- Variables that are used on both client and server
SWEP.Gun = ("tfa_flintlockrifle") -- must be the name of your swep but NO CAPITALS!
SWEP.Category = "L'Aigle Weapons"
SWEP.Author = "Rarri"
SWEP.Contact = ""
SWEP.Purpose = ""
SWEP.Instructions = ""
SWEP.MuzzleAttachment = "1" -- Should be "1" for CSS models or "muzzle" for hl2 models
SWEP.ShellEjectAttachment = "2" -- Should be "2" for CSS models or "1" for hl2 models
SWEP.MuzzleFlashEffect = "effect_awoi_smoke"
SWEP.PrintName = "Flintlock Rifle" -- Weapon name (Shown on HUD)
SWEP.Slot = 3 -- Slot in the weapon selection menu
SWEP.SlotPos = 50 -- Position in the slot
SWEP.DrawAmmo = true -- Should draw the default HL2 ammo counter
SWEP.DrawWeaponInfoBox = false -- Should draw the weapon info box
SWEP.BounceWeaponIcon = false -- Should the weapon icon bounce?
SWEP.DrawCrosshair = false -- set false if you want no crosshair
SWEP.Weight = 30 -- rank relative ot other weapons. bigger is better
SWEP.AutoSwitchTo = true -- Auto switch to if we pick it up
SWEP.AutoSwitchFrom = true -- Auto switch from if you pick up a better weapon
SWEP.HoldType = "ar2" -- how others view you carrying the weapon
-- normal melee melee2 fist knife smg ar2 pistol rpg physgun grenade shotgun crossbow slam passive
-- you're mostly going to use ar2, smg, shotgun or pistol. rpg and crossbow make for good sniper rifles
SWEP.ViewModelFOV = 50
SWEP.ViewModelFlip = false
SWEP.ViewModel = "models/weapons/rarri/v_flintlockrifle.mdl"
SWEP.WorldModel = "models/weapons/rarri/w_flintlockrifle.mdl" -- Weapon world model
SWEP.Base = "tfa_gun_base"
SWEP.Spawnable = true
SWEP.AdminSpawnable = true
SWEP.FiresUnderwater = false
SWEP.DisableChambering = true
SWEP.Primary.Sound = Sound("flintlock.Single") -- Script that calls the primary fire sound
SWEP.Primary.RPM = 2 -- This is in Rounds Per Minute
SWEP.Primary.ClipSize = 1 -- Size of a clip
SWEP.Primary.DefaultClip = 1 -- Bullets you start with
SWEP.Primary.KickUp = 3.2 -- Maximum up recoil (rise)
SWEP.Primary.KickDown = 0.6 -- Maximum down recoil (skeet)
SWEP.Primary.KickHorizontal = 0.8 -- Maximum up recoil (stock)
SWEP.Primary.Automatic = false -- Automatic = true; Semi Auto = false
SWEP.Primary.Ammo = "ar2" -- pistol, 357, smg1, ar2, buckshot, slam, SniperPenetratedRound, AirboatGun
-- Pistol, buckshot, and slam always ricochet. Use AirboatGun for a light metal peircing shotgun pellets
SWEP.SelectiveFire = false
SWEP.Secondary.IronFOV = 85 -- How much you 'zoom' in. Less is more!
SWEP.data = {} --The starting firemode
SWEP.data.ironsights = 1
SWEP.Primary.NumShots = 1 -- How many bullets to shoot per trigger pull
SWEP.Primary.Damage = 100 -- Base damage per bullet
SWEP.Primary.Spread = .028 -- Define from-the-hip accuracy 1 is terrible, .0001 is exact)
SWEP.Primary.IronAccuracy = .018 -- Ironsight accuracy, should be the same for shotguns
SWEP.IronSightsMoveSpeed = 0.45
-- Enter iron sight info and bone mod info below
SWEP.IronSightsPos = Vector(-7.37, -3.217, 5.19)
SWEP.IronSightsAng = Vector(0.8, 0.1, -3.518)
SWEP.SightsPos = Vector(-7.37, -3.217, 5.19)
SWEP.SightsAng = Vector(0.8, 0.1, -3.518)
SWEP.RunSightsPos = Vector(0, -2.814, 3.216)
SWEP.RunSightsAng = Vector(-8.443, 28.843, -10.554)
if GetConVar("sv_tfa_default_clip") == nil then print("sv_tfa_default_clip is missing! You might've hit the lua limit. Contact the SWEP author(s).")
else if GetConVar("sv_tfa_default_clip"):GetInt() != -1 then SWEP.Primary.DefaultClip = SWEP.Primary.ClipSize * GetConVar("sv_tfa_default_clip"):GetInt() end
end
if GetConVar("sv_tfa_unique_slots") != nil then if not (GetConVar("sv_tfa_unique_slots"):GetBool()) then SWEP.SlotPos = 2 end
end
SWEP.EventTable = { [ACT_VM_RELOAD] = { { ['time'] = 0, ['type'] = "sound", ['value'] = "flintlock.reload" } }
}
 
Dernière édition:
AyZenSantos

AyZenSantos

Psychopathe
Messages
3 361
Score réaction
753
Points
300
Salut ;) c'est un script ^^
https://scriptfodder.com/scripts/view/685/weapon-switching-delay
 
AyZenSantos

AyZenSantos

Psychopathe
Messages
3 361
Score réaction
753
Points
300
Ah de rechargement alors sa je sais pas
 
  • Initiateur de la discussion
ZenitHD

ZenitHD

Geek suprême
Messages
212
Score réaction
27
Points
130
Petit UP
 
Discord d'entraide
Rejoignz-nous sur Discord