Re: How to create custom destroyable objects or objects which can get damaged <0.3z> -
Lordzy - 25.01.2014
Thanks.
NOTE : I've noticed that it's announced on the RC3 update version that sniper gets called on objects beyond the SA's area. I couldn't test that out as I'm not on my home these days, would be really good if someone confirms about it. If so, you could use this tutorial with sniping too.
Re: How to create custom destroyable objects or objects which can get damaged <0.3z> -
Ballu Miaa - 27.01.2014
This looks amazing Lordz! Good work brother. I can make a shooting range with all the new callbacks of SA-MP 0.3z
Re: How to create custom destroyable objects or objects which can get damaged <0.3z> -
Misiur - 27.01.2014
Love the causual "lol" at the end of video. I'm quite impressed with that stuff, only thing I'd suggest is using custom iterators (as optional dependency y_iterate, of course) (hooked to createobject/createplayerobject), so you don't have to loop through all objects - and only loop through already added ones.
Re: How to create custom destroyable objects or objects which can get damaged <0.3z> -
Lordzy - 28.01.2014
Quote:
Originally Posted by Ballu Miaa
This looks amazing Lordz! Good work brother. I can make a shooting range with all the new callbacks of SA-MP 0.3z
|
Thanks! Yep, shooting ranges are going to be great with this 0.3z's release. I'm just waiting for it to get released completely.
Quote:
Originally Posted by Misiur
Love the causual "lol" at the end of video. I'm quite impressed with that stuff, only thing I'd suggest is using custom iterators (as optional dependency y_iterate, of course) (hooked to createobject/createplayerobject), so you don't have to loop through all objects - and only loop through already added ones.
|
Sure, you can use it in case if you want to. Or else, you can even create custom arrays so to just loop that array in which the destroyable objects would be listed. Counting the numbers would also save the times to loop.
Re: How to create custom destroyable objects or objects which can get damaged <0.3z> -
Rube - 30.01.2014
Thanks man, great tutorial
Re: How to create custom destroyable objects or objects which can get damaged <0.3z> -
Lordzy - 16.02.2014
@Rube, thanks.
OT : I just noticed that Streamer has been updated to 0.3z version which supports an additional callback called "OnPlayerShootDynamicObject". I've updated the tutorial with Streamer related object but right now I'm not that free so I've just explained major things under Streamer related tutorial for damaging objects. More could be explained soon.
Re: How to create custom destroyable objects or objects which can get damaged <0.3z> -
Niko_boy - 16.02.2014
Nicely presented and explained. also a good idea inb4 anyone else xD so good job!
Re: How to create custom destroyable objects or objects which can get damaged <0.3z> -
BigGroter - 16.02.2014
Very well written tutorial, good job.
Re: How to create custom destroyable objects or objects which can get damaged <0.3z> -
Lordzy - 16.02.2014
Quote:
Originally Posted by Niko_boy
Nicely presented and explained. also a good idea inb4 anyone else xD so good job!
|
Haha, not really but I was just too much interested in this. Thanks.
Quote:
Originally Posted by BigGroter
Very well written tutorial, good job.
|
Thanks.
Re: How to create custom destroyable objects or objects which can get damaged <0.3z> -
XtremeR - 19.02.2014
Great work Lordz, +rep.
EDIT: Need to spread some..
Re: How to create custom destroyable objects or objects which can get damaged <0.3z> -
AssMunchingFool - 26.03.2014
watching the video reminded me of flood mod in garry's mod... lol
i wonder if anyone actually used function this in a meaningful way on a server yet.
Unfortunately is there no way to stop fist damage to certain objects? because when fitting with hands, OnPlayerWeaponShot doesnt seem to be called
Re: How to create custom destroyable objects or objects which can get damaged <0.3z> -
Lordzy - 27.03.2014
Quote:
Originally Posted by AssMunchingFool
watching the video reminded me of flood mod in garry's mod... lol
i wonder if anyone actually used function this in a meaningful way on a server yet.
Unfortunately is there no way to stop fist damage to certain objects? because when fitting with hands, OnPlayerWeaponShot doesnt seem to be called
|
Unfortunately, OnPlayerWeaponShot gets called for weapons which fires bullets only. To try the hits with melee weapons, you could try getting the animation and then check if it's closed to object by getting player's and object's position, facing angle and facing pos.
Re: How to create custom destroyable objects or objects which can get damaged <0.3z> -
Lordzy - 24.04.2014
Updated thread, clarified a few more things.
Re: How to create custom destroyable objects or objects which can get damaged <0.3z> -
1fret - 03.10.2016
Well explained but the script is very untidy, wouldn't recommend for a new scripter