Garry's Mod

Garry's Mod

Dragon Breath
Showing 1-7 of 7 entries
Update: 5 Sep, 2024 @ 9:28am

1. Optimized Particle Emitter
Original: Created a new ParticleEmitter inside the Render function on every frame.
Improved: Moved the particle emitter creation to the Init function and reused it throughout the effect. This reduces performance overhead since creating a new emitter each frame is unnecessary.
Clean-up: The emitter is now cleaned up in the Think function when the effect is done, preventing memory leaks.
2. Simplified Code in Render Function
Original: The pos variable (fireball starting position) was assigned twice, unnecessarily.
Improved: Removed redundant assignment. Now, pos = self.wep:GetShootPosition() is assigned just once, making the code cleaner.
3. Enhanced Particle Effects
Original: Particles had minimal variation and didn’t look as dynamic.
Improved:
Changed the particle material to "effects/fire_cloud1" for a more fire-like texture.
Increased particle size (SetStartSize and SetEndSize) to make the fire breath more visible.
Adjusted the gravity (SetGravity) to -900 for a more realistic falling fire effect.
Lowered air resistance to 800 for faster particle movement, making the fire feel more intense.
4. Improved Dynamic Lighting
Original: Lighting was static, with fixed color and brightness.
Improved:
Made the lighting flicker slightly by randomizing the red and green values (dLight.r and dLight.g).
Added random flicker to the brightness (dLight.Brightness) to simulate firelight more realistically.
Shortened the light's lifetime (dLight.DieTime) to 0.15 seconds for a quicker flicker effect.

Update: 1 Oct, 2020 @ 3:53pm

Added fly to right click, not you can fly and kill people from above

Update: 19 May, 2019 @ 12:42pm

Fixed Stuff: added dragon type sounds on deploy and undeploy so people know you're about to get serious. REQUIRES VFIRE! without Vfire the swep will not function as intended.

Update: 18 Apr, 2019 @ 7:44pm

None Provided

Update: 11 Sep, 2018 @ 4:36pm

None Provided

Update: 11 Sep, 2018 @ 4:26pm

None Provided

Update: 30 Aug, 2018 @ 1:58pm