Raised This Month: $81 Target: $400

[L4D2 | ANY?] ShockWave Inc

Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Senior Member
Join Date: Dec 2020
Location: Brazil
Old 07-05-2023 , 20:05   [L4D2 | ANY?] ShockWave Inc
Reply With Quote #1


This include brings you experiments to get to know "physics" in games, specifically in L4D2. I created functions for shock wave reactions from an explosion or whatever.

PHP Code:
//Makes the shock wave throwing force value
stock float PowerThrow(float vPos[3], float InitPos[3], float StartPower)

//Makes the shock wave damage value
stock float PowerDamage(float vPos[3], float InitPos[3], float StartPower)

//Makes the shock wave time
stock float TimerReaction(float distancefloat Velocity)

//Makes the shock wave volume sound
stock float VolumeDistance(float vPos[3], float InitPos[3])

//Make the shock wave shake value
stock float ShakeFade(float vPos[3], float InitPos[3])

//Check if the shockwave can hit the client or entity
stock bool IfIsVisible(int entityfloat Pos1[3], float Pos2[3])

//Check if the client is valid
stock bool IsValidClient(int client)

//Precache the particles
stock void PrecacheParticle(const char[] sEffectName

The include is made for fun and sharing
If there are any errors, post in the thread
It uses the in-game distance and multiplies it with "*0.0254" for meters

Sample File

Get Source

Get Plugin


Get Include
Attached Files
File Type: inc shockwave.inc (2.5 KB, 99 views)
My Noob Plugins


Last edited by King_OXO; 07-21-2023 at 13:29.
King_OXO is offline

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -4. The time now is 17:18.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode