Garry's Mod

Garry's Mod

Zeros Snowball Swep [vFire Support]
35 Comments
Star Berry 18 Oct, 2023 @ 1:18pm 
Editing the .gma causes gmod to think it's a "bad addon" and remove it. You really need to make these parameters editable from within the ingame spawn menu :\
Star Berry 7 Jul, 2023 @ 10:39am 
I also found these lines:

function SWEP:SetupDataTables()
self:NetworkVar("Int", 0, "SnowballCount")

if SERVER then
self:SetSnowballCount(5)
end
end
if not CLIENT then return end

If I change the integer on self:SetSnowballCount, will that adjust how many snowballs you start with when you give it to yourself via the spawn menu?
Star Berry 7 Jul, 2023 @ 10:34am 
How do you change the the weapon parameters such as the ones in the description? I'm rummaging around in the .gma and found the following lines:

zck.config.Swep = {
MaxAmmo = 15,
damage = 1,
}

Do I just have to change the numbers here and the changes will be reflected in gameplay?
Salpaca53 1 Jan, 2023 @ 2:00pm 
@crash fan razer63 I know this is late, but vFire is an addon that makes fire very realistic: https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=1525218777
crash fan razer63 26 Oct, 2022 @ 6:11pm 
what is vfire? i only heard of fire
Octoling Girl and Steve 28 Nov, 2021 @ 11:41am 
cool
Mystic Monkey 6 Nov, 2021 @ 5:28pm 
Certified VRMod compatible, though works like a launcher.
Don't have any friends for a snowball fight.

Instead of snowballs doing damage, perhaps a point system or a gamemode with point system.
DishTheWasher 21 Sep, 2021 @ 8:51am 
lmao snowball bfb asset on the screenshot's hud
Hallen "The king" Matthieuws 14 Nov, 2020 @ 3:12am 
Downtown triton old
Rye 2 Mar, 2020 @ 7:49pm 
what is the map
hospiedromain 18 Dec, 2019 @ 2:00pm 
Hey ! I have a question, he's compatible with stormfox snow ?
Moo Moo Armageddon 30 Nov, 2019 @ 6:48am 
this is like south park 64
Dank 23 Sep, 2019 @ 5:49pm 
I ended up doing ent:SetOwner(self.Owner) and it worked fantastic. Thanks for the tips! <3
Zerochain  [author] 19 Sep, 2019 @ 12:04am 
@[DMG] Shade, I see what you mean, go to the weapon init.lua and add
ent.Owner = self.Owner
after the snowball got spawned in SWEP:ThrowSnowball()
that should set the owner for the snowball.
Dank 18 Sep, 2019 @ 10:58pm 
I can get it to kill NPCs, it just doesn't call self.Owner in TakeDamage when it's an NPC.
Zerochain  [author] 18 Sep, 2019 @ 10:50pm 
@[DMG] Shade You probably want to add your stuff in the snowball itself at PhysicsCollide and add a "or" check for player / npc instead of just the IsPlayer check.
Dank 18 Sep, 2019 @ 11:40am 
Any chance on getting this to work on NPCs? I've tried modding it but haven't been able to get it to register the kill to the player as the snowball entity registers self.Owner as nil
Fungi77 10 Jul, 2019 @ 2:01pm 
well it's not stupid just not related at all
Fungi77 10 Jul, 2019 @ 2:00pm 
when i looked up snow ball all i found was stupid stuff not related to snow ball
The Wokeularity 10 May, 2019 @ 4:26pm 
she is fire burning on the dance floor...







GET THE SNOW BALLS GUYS NO 911 NEEDED
sqworm 21 Apr, 2019 @ 9:13pm 
@a cheese burrito

lol
a grilled cheese sandwich 17 Apr, 2019 @ 5:46pm 
oh crap my house is on vfire mooom get the snowbaaaaalls
sqworm 15 Jan, 2019 @ 3:59am 
:D
Zerochain  [author] 14 Jan, 2019 @ 10:52pm 
@I want die, maybe sounds fun :)
sqworm 14 Jan, 2019 @ 4:33pm 
Love it! Do you plan to add a mechanic that lets you put out fires (Vfire especially) with snowballs?
[GAB] 095 25 Dec, 2018 @ 11:05pm 
What a fun SWEP! If I am understanding this SWEP correctly, I'm guessing the Snowball uses Player Data for Snowball Ammunition, instead of the traditional Valve Ammo system, which is pretty nifty. Also, it's incredibly renewable, which is always a solid vote-getter. If at all possible in the future, could there be a Mudball SWEP that obstructs player views if hit in the eye, and can be renewed on Mud Physical Surfaces?
Keep up the good work!
SuperToaster 24 Dec, 2018 @ 8:40am 
Okay
Zerochain  [author] 24 Dec, 2018 @ 8:26am 
@Christmastoaster No its completle new made from scratch, its not really that complicated anyway to make a swep that shoots entities, the old swep allways had the problem that it removed the snowball entity unsafe, which could cause crashes and also show the Error Message: Changing collision rules within a callback is likely to cause crashes!
SuperToaster 24 Dec, 2018 @ 8:05am 
Is this a recreation of that old snowball swep from gmod 12?
SöldnerDose 24 Dec, 2018 @ 5:57am 
lol, how can a snowball swep crahs a server? that is weird
Zerochain  [author] 24 Dec, 2018 @ 3:55am 
@Man with no Name, Well not the idea but the motivation for it ye, there were some snowball sweps in gmod before that but most of them caused crashes on server.
SöldnerDose 24 Dec, 2018 @ 1:23am 
lol cool but tell me: did you have the idea froom csgo? just a question
ŸouŋgPũrpleĎragōnŚtarlŏk 22 Dec, 2018 @ 10:16am 
Woow cool! :alyx:
Samgaze 22 Dec, 2018 @ 3:49am 
Very nice work !
Poco 22 Dec, 2018 @ 2:49am 
Hella neato