Krex

Hydra Rocket Damage

Recommended Posts

Help, does anyone know a way to like increase the explosive damage from hydra missiles?

Share this post


Link to post

Hi @Krex !

          I don't know 100% working method. But I give you a little support regarding this.

Server Side :-

addEventHandler("onPlayerDamage",root,
function (_,type)
	if type == 19 then
	  local x,y,z = getElementPosition(source)
	    createExplosion(x,y,z,10)
	    createExplosion(x,y,z,10)
	    createExplosion(x,y,z,10)
	end
end
)

This is my little effort results. When a player hit a missile, x3 explosion create. But if missile explode near the player. Our custom explosions done on the player O.o. examine the code and build your own.

Good Luck !:D

  • Thanks 1

Share this post


Link to post
On 08/12/2018 at 11:03, DeadthStrock said:

Hi @Krex !

          I don't know 100% working method. But I give you a little support regarding this.

Server Side :-


addEventHandler("onPlayerDamage",root,
function (_,type)
	if type == 19 then
	  local x,y,z = getElementPosition(source)
	    createExplosion(x,y,z,10)
	    createExplosion(x,y,z,10)
	    createExplosion(x,y,z,10)
	end
end
)

This is my little effort results. When a player hit a missile, x3 explosion create. But if missile explode near the player. Our custom explosions done on the player O.o. examine the code and build your own.

Good Luck !:D

It didn't work....... but thanks for trying. ill see what i can do with this code.

Share this post


Link to post

Thank you @IIYAMA !

According to that event try below code.

Client Side :-

addEventHandler("onClientExplosion",root,
function (x,y,z,type)
	if type == 2 or type == 3 then
	    triggerServerEvent("hydra.onExplosion",resourceRoot,x,y,z)
	end
end
)

Server Side :-

addEvent("hydra.onExplosion",true)
addEventHandler("hydra.onExplosion",root,
function (x,y,z)
	createExplosion(x,y,z,10)
	createExplosion(x,y,z,10)
	createExplosion(x,y,z,10)
end
)

I do not know weather hydra explosion is '2' or '3'. Find it by yourself @Krex.

  • Thanks 1

Share this post


Link to post
On 10/12/2018 at 14:58, DeadthStrock said:

Thank you @IIYAMA !

According to that event try below code.

Client Side :-


addEventHandler("onClientExplosion",root,
function (x,y,z,type)
	if type == 2 or type == 3 then
	    triggerServerEvent("hydra.onExplosion",resourceRoot,x,y,z)
	end
end
)

Server Side :-


addEvent("hydra.onExplosion",true)
addEventHandler("hydra.onExplosion",root,
function (x,y,z)
	createExplosion(x,y,z,10)
	createExplosion(x,y,z,10)
	createExplosion(x,y,z,10)
end
)

I do not know weather hydra explosion is '2' or '3'. Find it by yourself @Krex.

Thanks, i had already figured it out. 

  • Like 1

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.