-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
minor adjustments to health thrower, reduced medic rpg ammo cost to 15 #156
base: main
Are you sure you want to change the base?
minor adjustments to health thrower, reduced medic rpg ammo cost to 15 #156
Conversation
clipsize reduced to 75, ammoprice increased, reduced alpha on particles so players can see, decreased cost of medic rpg ammo for consistency with demo's rockets, reduced spore launcher ammo price from 15->10
this might eventually get reverted
@@ -163,13 +163,13 @@ SWEP.Animations = { | |||
Time = 0.5, | |||
ShellEjectAt = 0, | |||
RestoreAmmo = 1, | |||
SoundTable = { { s = "", p = 100, v = 75, t = 0.1, c = CHAN_ITEM, ind = 1, bg = 1, } }, | |||
-- SoundTable = { { s = "", p = 100, v = 75, t = 0.1, c = CHAN_ITEM, ind = 1, bg = 1, } }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dont comment these out, just delete them
if CLIENT then | ||
SWEP.Hook_ModifyBodygroups = function(wep, data) | ||
local vm = data.vm | ||
-- local wm = true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be removed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
small nitpicks here and there
p:SetVelocity(((Hitpos - Startpos):GetNormal() * math.random(500, 800)) + VectorRand() * math.random(1, 60) + Vector(0,0,20)) | ||
p:SetCollide(true) | ||
p:SetColor(40, 40, 40) | ||
for e = 1, 2 do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if e isn't used replace it with _
p:SetCollide(true) | ||
p:SetColor(40, 40, 40) | ||
for e = 1, 2 do | ||
local g = self.Emitter:Add("particles/smokey", Startpos) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
instead of g this can be something like particle, no need for 1 char vars. it just makes the code harder to read.
@@ -5,7 +5,7 @@ function EFFECT:Init(data) | |||
has_burner = true | |||
end | |||
local light = DynamicLight( math.random( 0, 9999999 ) ) | |||
if(light) then | |||
if (light) then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can remove the useless parentheses here
@@ -19,7 +19,7 @@ function EFFECT:Init(data) | |||
light.Size = 128; | |||
light.Decay = 64; | |||
light.Brightness = 3; | |||
light.DieTime = CurTime()+1; | |||
light.DieTime = CurTime() + 1; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the ; can entirely be removed
@@ -28,7 +28,7 @@ function EFFECT:Init(data) | |||
|
|||
local FlameEmitter = ParticleEmitter(data:GetOrigin()) | |||
|
|||
for i=0, 16 do | |||
for i = 0, 16 do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if i isn't used replace it with _
clipsize reduced to 75, ammoprice increased, reduced alpha on particles so players can see, decreased cost of medic rpg ammo for consistency with demo's rockets, reduced spore launcher ammo price from 15->10