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

Destroying objects


Post New Thread Reply   
 
Thread Tools Display Modes
Natsheh
Veteran Member
Join Date: Sep 2012
Old 06-25-2021 , 09:46   Re: Destroying objects
Reply With Quote #11

a solution is to hook player traceattack and adjust the trace to the breakable entity.
__________________
@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
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 06-25-2021 , 10:46   Re: Destroying objects
Reply With Quote #12

Quote:
Originally Posted by Cirovic View Post
idk what that means, when i shoot throught teammate i cannot break object
When making map, I updated that other post too, author can set the properties of the breakable so if it is blocking player, (and the game) it breaks. It is up to their imagination from there to create whatever after that, custom gibs etc. On older post I tested on es_trinity with otherwise useless bots. We were able to just run into the blocked cave door and bulldoze it down at spawn point.

This will show the remaining HP when hitting the breakable.
Code:
#include amxmodx #include engine #include fakemeta #include hamsandwich #define charsmin -1 new break_ent; public plugin_init() {     register_plugin("breakable hitpoints","1.0","SPiNX");         break_ent = find_ent_by_class(charsmin, "func_breakable");         RegisterHamFromEntity(Ham_TakeDamage,break_ent,"Felt_attack", 0)     } public Felt_attack(this_ent,idattacker) {     new health = pev(this_ent,pev_health);         if ( is_user_connected(idattacker) && !is_user_bot(idattacker) )         client_print(idattacker,print_center,"HP:%i",health);
__________________

Last edited by DJEarthQuake; 06-25-2021 at 10:46.
DJEarthQuake is offline
Cirovic
Senior Member
Join Date: Sep 2019
Old 06-25-2021 , 15:16   Re: Destroying objects
Reply With Quote #13

Quote:
Originally Posted by Natsheh View Post
a solution is to hook player traceattack and adjust the trace to the breakable entity.
can you please do it, earthquake removed all objects and that is not solution.. please someone help me?
Cirovic is offline
Old 06-27-2021, 02:24
Natsheh
This message has been deleted by Natsheh. Reason: nvm
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 08:18.


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