AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   New Plugin Submissions (https://forums.alliedmods.net/forumdisplay.php?f=26)
-   -   Splashing On The Water (https://forums.alliedmods.net/showthread.php?t=342928)

MayroN 05-29-2023 19:37

Splashing On The Water
 
2 Attachment(s)
Splashing On The Water

Sprite Author - zoonyarts
Implementation - MayroN
Plugin Authors - MayroN | Connor McLeod | fl0wer | Flymic24

Description

The plugin adds sprite splashes on the water to the game
Zbot Support

Sprite display in effect
Walking in the water
Fall into the water
Water shots (knife doesn't count)
Grenade explosion in water


There is a macro in the code, after how long to show the sprite when walking on water

There is a bug only in this case (do not know how to fix it yet)
----------------------
If you are near the water, and shoot through the water at a wall, for example, which is not in the water, then splashes are displayed near the wall (the video is present at the end)
-----------------------

https://i.ibb.co/LZXQGF5/1-0-00-45-037.jpg

Video
https://www.youtube.com/watch?v=9HoQaw97xkA

PHP Code:

#define FOOTSTEPS_WATER_DELAY        0.5    // How long to show splashes on the water when walking 


okbede_123 05-30-2023 03:14

Re: Splashing On The Water
 
Great plugin bro

SoulWeaver16 05-30-2023 19:13

Re: Splashing On The Water
 
Interesting, maybe the animation speed should be increased, since it seems very slow
And use another splash for the footsteps

DJEarthQuake 05-30-2023 20:52

Re: Splashing On The Water
 
This looks tight. I made one with sound effects.

MayroN 05-31-2023 03:41

Re: Splashing On The Water
 
1 Attachment(s)
Quote:

Originally Posted by okbede_123 (Post 2805250)
Great plugin bro

Thank you

Quote:

Originally Posted by DJEarthQuake (Post 2805295)
This looks tight. I made one with sound effects.

I'm waiting for the video

Quote:

Originally Posted by SoulWeaver16 (Post 2805292)
Interesting, maybe the animation speed should be increased, since it seems very slow
And use another splash for the footsteps

I knew so)

https://www.youtube.com/watch?v=kGLlDtpZW9E

Siska1 05-31-2023 12:56

Re: Splashing On The Water
 
1. I want to ask if there is a way that when a he grenade explodes underwater we don't see the main sprites related to the he grenade explosion, but only see the new splash sprite ?
2. I noticed that - when the grenade explodes you can see that it explodes and you hear a sound, but I see the splashes before that.
I'm using the faster sprite, is that the reason?

MayroN 05-31-2023 14:12

Re: Splashing On The Water
 
Quote:

Originally Posted by Siska1 (Post 2805329)
1. I want to ask if there is a way that when a he grenade explodes underwater we don't see the main sprites related to the he grenade explosion, but only see the new splash sprite ?

Splash sprite is shown along with all explosion sprites
Quote:

Originally Posted by Siska1 (Post 2805329)
2. I noticed that - when the grenade explodes you can see that it explodes and you hear a sound, but I see the splashes before that.
I'm using the faster sprite, is that the reason?

This is how it should be - everything is shown together

SoulWeaver16 06-05-2023 07:57

Re: Splashing On The Water
 
Maybe I could combine it with this plugin
Bubble Trails by ConnorMcLeod
Since it is extremely similar to your plugin
Edit: That is, how to combine them, because I could measure the distance, if it is deep, use bubbles, if it is shallow water, use the splash

DJEarthQuake 02-13-2024 22:02

Re: Splashing On The Water
 
Doubt a video will ever be made. It was a plugin called Drowned whereby I was just testing several functions. If you want to use the big splash sound when jumping in pool of water.

Naeciof 02-18-2024 00:16

Re: Splashing On The Water
 
Plugin shows errors when compiling

Quote:

//// csplashing_on_the_water.sma
// C:\Users\Naecio\Desktop\_scripting\csplashing _on_the_water.sma(14) : error 017: undefined symbol "MAX_PLAYERS"
// C:\Users\Naecio\Desktop\_scripting\csplashing _on_the_water.sma(14) : error 009: invalid array size (negative or zero)
// C:\Users\Naecio\Desktop\_scripting\csplashing _on_the_water.sma(24) : error 017: undefined symbol "specialbot"
// C:\Users\Naecio\Desktop\_scripting\csplashing _on_the_water.sma(24) : warning 215: expression has no effect
// C:\Users\Naecio\Desktop\_scripting\csplashing _on_the_water.sma(24) : error 001: expected token: ";", but found ")"
// C:\Users\Naecio\Desktop\_scripting\csplashing _on_the_water.sma(24) : error 029: invalid expression, assumed zero
// C:\Users\Naecio\Desktop\_scripting\csplashing _on_the_water.sma(24) : fatal error 107: too many error messages on one line
//
// Compilation aborted.
// 6 Errors.
// Could not locate output file C:\Users\Naecio\Desktop\_scripting\compiled\s plashing_on_the_water.amx (compile failed).
//
// Compilation Time: 0,44 sec
// ----------------------------------------

Press enter to exit ...


All times are GMT -4. The time now is 10:28.

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