Raised This Month: $12 Target: $400
 3% 

[L4D2 | ANY?] ShockWave Inc


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

About:

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.

Functions:
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
Notes:

• 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

INCLUDE:

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

Discord:WhiteFire#1301
Steam:WhiteFire
Youtube

Last edited by King_OXO; 07-21-2023 at 12:29.
King_OXO is offline
Miamivhc
New Member
Join Date: Jul 2023
Old 07-07-2023 , 23:53   Re: [L4D2 | ANY?] ShockWave Inc
Reply With Quote #2

Where can I test it?
Miamivhc is offline
King_OXO
Senior Member
Join Date: Dec 2020
Location: Brazil
Old 07-08-2023 , 19:03   Re: [L4D2 | ANY?] ShockWave Inc
Reply With Quote #3

Quote:
Originally Posted by Miamivhc View Post
Where can I test it?
This here is a script and compilation include for plugins, if you have any intention of using this as a plugin, you are wrong XD. Use the test I did, download it in the "Get Plugin" option and move it to the sourcemod/plugins folder in l4d2
__________________
My Noob Plugins

Discord:WhiteFire#1301
Steam:WhiteFire
Youtube
King_OXO is offline
LisaSutcliffe
New Member
Join Date: Jul 2023
Old 07-19-2023 , 01:44   Re: [L4D2 | ANY?] ShockWave Inc
Reply With Quote #4

Thank you for sharing, I will surely try it out and if I face any issues, I will ask you.I was struggling with my research paper and fortunately, I discovered the website https://customwriting.com/buy-research-paper, which has the best writers who can assist me with my tasks. With their help, I can now concentrate on other important things in my life without worrying about my work. Their reliable service and expert writers have made my academic life much easier, and I am grateful for their support.

Last edited by LisaSutcliffe; 07-26-2023 at 03:22.
LisaSutcliffe is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 07-19-2023 , 10:46   Re: [L4D2 | ANY?] ShockWave Inc
Reply With Quote #5

Remove the IsClientConnected check. This is covered by IsClientInGame. It should also be "client <= MaxClients" not "client < MaxClients"
__________________
Silvers is offline
King_OXO
Senior Member
Join Date: Dec 2020
Location: Brazil
Old 07-21-2023 , 12:29   Re: [L4D2 | ANY?] ShockWave Inc
Reply With Quote #6

Quote:
Originally Posted by Silvers View Post
Remove the IsClientConnected check. This is covered by IsClientInGame. It should also be "client <= MaxClients" not "client < MaxClients"
Fixed
__________________
My Noob Plugins

Discord:WhiteFire#1301
Steam:WhiteFire
Youtube
King_OXO is offline
King_OXO
Senior Member
Join Date: Dec 2020
Location: Brazil
Old 07-21-2023 , 13:22   Re: [L4D2 | ANY?] ShockWave Inc
Reply With Quote #7

Quote:
Originally Posted by LisaSutcliffe View Post
Thank you for sharing, I will surely try it out and if I face any issue, I will ask you.
Ty
__________________
My Noob Plugins

Discord:WhiteFire#1301
Steam:WhiteFire
Youtube
King_OXO is offline
Reply


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 06:22.


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