Skip to content

Commit

Permalink
dc15s weaker added to support to an extent tiered equipment
Browse files Browse the repository at this point in the history
  • Loading branch information
Servius committed Feb 16, 2020
1 parent 2d720a2 commit 4fff857
Show file tree
Hide file tree
Showing 3 changed files with 97 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ SWEP.Primary.NumShots = 1
SWEP.Primary.Spread = 0.009
SWEP.Primary.IronAccuracy = .001 -- Ironsight accuracy, should be the same for shotguns
SWEP.Primary.ClipSize = 35
SWEP.Primary.RPM = 260
SWEP.Primary.RPM = 300
SWEP.Primary.DefaultClip = 50
SWEP.Primary.Automatic = true
SWEP.Primary.Ammo = "ar2"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
if ( SERVER ) then
AddCSLuaFile( "shared.lua" )
end
if ( CLIENT ) then
SWEP.PrintName = "DC-15s Weaker"
SWEP.Author = "TFA, Servius"
SWEP.Slot = 2
SWEP.SlotPos = 3
end
SWEP.Base = "tfa_gun_base"
SWEP.Category = "TFA Star Wars"
SWEP.Spawnable = true
SWEP.AdminSpawnable = true
SWEP.HoldType = "ar2"
SWEP.ViewModelFOV = 70
SWEP.ViewModelFlip = false
SWEP.ViewModel = "models/servius/starwars/c_ashuradc15s.mdl"
SWEP.WorldModel = "models/servius/starwars/w_ashuradc15s.mdl"
SWEP.ShowViewModel = true
SWEP.ShowWorldModel = true
SWEP.UseHands = true
SWEP.Primary.Sound = Sound ("strasser/weapons/dc15/dc15_laser.wav");
SWEP.Primary.ReloadSound = Sound ("weapons/bf3/standard_reload2.ogg");

SWEP.Weight = 5
SWEP.AutoSwitchTo = false
SWEP.AutoSwitchFrom = false

SWEP.SafetyPos = Vector(0, 0, 0)
SWEP.SafetyAng = Vector(-10, 10, 0)

SWEP.Primary.Damage = 25
SWEP.Primary.NumShots = 1
SWEP.Primary.Spread = 0.009
SWEP.Primary.IronAccuracy = .001 -- Ironsight accuracy, should be the same for shotguns
SWEP.Primary.ClipSize = 35
SWEP.Primary.RPM = 280
SWEP.Primary.DefaultClip = 50
SWEP.Primary.Automatic = true
SWEP.Primary.Ammo = "ar2"
SWEP.DisableChambering = true

SWEP.Primary.Force = nil
SWEP.Primary.Knockback = nil
SWEP.Primary.Recoil = 0
SWEP.Primary.KickUp = .3

SWEP.Primary.SpreadMultiplierMax = nil -- How far the spread can expand when you shoot. Example val: 2.5
SWEP.Primary.SpreadIncrement = 1/2.9 -- What percentage of the modifier is added on, per shot. Example val: 1/3.5

SWEP.Tracer = 0
SWEP.TracerName = "effect_sw_laser_blue"
SWEP.TracerCount = 1
SWEP.TracerLua = false
SWEP.TracerDelay = 0.01
SWEP.ImpactEffect = "effect_sw_impact"
SWEP.ImpactDecal = "FadingScorch"
SWEP.SelectiveFire = false --Allow selecting your firemode?
SWEP.DisableBurstFire = false --Only auto/single?
SWEP.OnlyBurstFire = false --No auto, only burst/single?
SWEP.DefaultFireMode = "" --Default to auto or whatev
SWEP.FireModeName = nil --Change to a text value to override it
SWEP.Secondary.Automatic = false
SWEP.Secondary.Ammo = "none"
SWEP.Secondary.IronFOV = 90
SWEP.IronSightsPos = Vector(-2.8, 0, 1.96)
SWEP.IronSightsAng = Vector(0, 0, 0.5)
SWEP.BlowbackVector = Vector(0,0,0)
SWEP.Blowback_Only_Iron = false
SWEP.DoProceduralReload = false
SWEP.ProceduralReloadTime = 2.5

SWEP.DoMuzzleFlash = true
SWEP.CustomMuzzleFlash = true
SWEP.MuzzleFlashEffect = "rw_sw_muzzleflash_blue"

SWEP.GrappleHookSound = "weapons/rpg/shotdown.wav"
SWEP.GrappleMoveSound = "weapons/tripwire/ropeshoot.wav"

SWEP.VElements = {
["lasersight"] = { type = "Model", model = "models/sw_battlefront/props/flashlight/flashlight.mdl", bone = "DC15_S", rel = "", pos = Vector(0.99, 6.752, 0.518), angle = Angle(0, -90, 180), size = Vector(0.5, 0.5, 0.5), color = Color(255, 255, 255, 255), surpresslightning = false, material = "", skin = 0, bodygroup = {}, bonermerge = true, active = true },
["laser"] = { type = "Model", model = "models/tfa/lbeam.mdl", bone = "DC15_S", rel = "lasersight", pos = Vector(0, 0, 0), angle = Angle(0, 0, 0), size = Vector(1.274, 1.274, 1.274), color = Color(255, 255, 255, 255), surpresslightning = false, material = "", skin = 0, bodygroup = {}, bonermerge = true, active = false }
}

SWEP.WElements = {
["lazer"] = { type = "Model", model = "models/tfa/lbeam.mdl", bone = "ValveBiped.Bip01_R_Hand", rel = "lazersight", pos = Vector(0, 0, 0), angle = Angle(0, 0, 0), size = Vector(0.755, 0.755, 0.755), color = Color(255, 255, 255, 255), surpresslightning = false, material = "", skin = 0, bodygroup = {}, bonermerge = true, active = false },
["lazersight"] = { type = "Model", model = "models/sw_battlefront/props/flashlight/flashlight.mdl", bone = "ValveBiped.Bip01_R_Hand", rel = "", pos = Vector(17, 2.2, -6), angle = Angle(-10.52, 0, 0), size = Vector(0.5, 0.5, 0.5), color = Color(255, 255, 255, 255), surpresslightning = false, material = "", skin = 0, bodygroup = {}, bonermerge = true, active = true }
}

SWEP.Attachments = {
[1] = { offset = { 0, 0 }, atts = { "lazersight4"}, order = 1 },
[2] = { offset = { 0, 0 }, atts = { "clipexpand2"}, order = 2 },
-- [3] = { offset = { 0, 0 }, atts = { "grapplehookatt","mod_stun5_servius","mod_stun10_servius","mod_stun15_servius","mod_stun20_servius","mod_stun5_servius2"}, order = 3 },


}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 4fff857

Please sign in to comment.