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

Water


Post New Thread Reply   
 
Thread Tools Display Modes
Hellkong
Member
Join Date: Nov 2021
Old 11-07-2021 , 07:54   Re: Water
Reply With Quote #11

Quote:
Originally Posted by Natsheh View Post
No, you need to hook FM_Traceline and check if the weapon traceline attack passes through the water.
Give me an example or tell me what to do after :

PHP Code:
public plugin_init()
    
register_forward(FM_TraceLine"Fw_TraceLine"1)

public 
Fw_TraceLine(Float:V1[3], Float:V2[3], MonstersAttackerPtr)
{
    if(!
is_user_alive(Attacker))
        return 
FMRES_IGNORED


? (I'm using phone only)
Hellkong is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 11-07-2021 , 08:22   Re: Water
Reply With Quote #12

https://stackoverflow.com/questions/...aabb-rectangle

Here's a guide on how to check intersection if you still don't understand ill be happy to create a function for you.
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
Hellkong
Member
Join Date: Nov 2021
Old 11-07-2021 , 08:28   Re: Water
Reply With Quote #13

Quote:
Originally Posted by Natsheh View Post
https://stackoverflow.com/questions/...aabb-rectangle

Here's a guide on how to check intersection if you still don't understand ill be happy to create a function for you.
Please do : )
I want to create a custom entity classname in the surface when it hits it (so basically i need only origin coords and the rest i can manage it).
Sadly I don't know that much, the site you sent has some calculation that will take me time to understand, but I don't have time.

Last edited by Hellkong; 11-07-2021 at 08:33.
Hellkong is offline
Old 11-07-2021, 19:58
Natsheh
This message has been deleted by Natsheh. Reason: this is invalid
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 11-07-2021 , 20:50   Re: Water
Reply With Quote #14

Did you search?
https://www.google.com/search?client...x+water+splash
On top.
Quote:
Originally Posted by AZNDARKEVILDEMON View Post
********************************************* ********************************************* *******************
AMX Splash Effect

Version: 0.1
Author: KRoT@L

0.1 Release


Splash effect when bullets hit water.


Cvar:

splash_effect 0/1 - 0: disables the plugin
1: enables the plugin
__________________
DJEarthQuake is offline
Hellkong
Member
Join Date: Nov 2021
Old 11-08-2021 , 02:51   Re: Water
Reply With Quote #15

Quote:
Originally Posted by DJEarthQuake View Post
I dunno but it seems "CurWeapon" a poor way to do this.
Hellkong is offline
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 11-08-2021 , 09:36   Re: Water
Reply With Quote #16

Quote:
Originally Posted by Hellkong View Post
I dunno but it seems "CurWeapon" a poor way to do this.
Try multiple ways so you do know.
__________________
DJEarthQuake is offline
Reply



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:03.


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