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

Block breaking func_breakable with nades


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Backstabnoob
Veteran Member
Join Date: Feb 2009
Location: Iwotadai Dorm
Old 06-10-2010 , 15:06   Block breaking func_breakable with nades
Reply With Quote #1

Hi, looking for a plugin which will block func_breakables to break while someone throws grenade at them.
__________________
Currently busy working on a very large scale anime database project.
Backstabnoob is offline
Flick3rR
Veteran Member
Join Date: Feb 2014
Location: Bulgaria, Stara Zagora
Old 08-01-2014 , 14:24   Re: Block breaking func_breakable with nades
Reply With Quote #2

Have you found some solution? I am currently searching for way to block func_breakables at all for some time, and then returning them back to normal.
__________________
Flick3rR is offline
Send a message via Skype™ to Flick3rR
joshknifer
Veteran Member
Join Date: Jun 2011
Location: Denver, CO
Old 08-01-2014 , 14:32   Re: Block breaking func_breakable with nades
Reply With Quote #3

https://www.google.com/search?q=func...=off&es_sm=122

Might have some options. I read one about respawning them that may help.
__________________
joshknifer is offline
Send a message via Skype™ to joshknifer
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 08-01-2014 , 14:56   Re: Block breaking func_breakable with nades
Reply With Quote #4

Not sure how this would work, but here's the idea.
Hook touch forward between grenade(can't think of a classname now) and "func_breakable" entities, both pre and post. In pre hook, include SF_BREAK_TRIGGER_ONLY into breakable's spawnflags, and on post forward just exclude it from the spawnflags bitsum. That may work.
klippy is offline
meTaLiCroSS
Gaze Upon My Hat
Join Date: Feb 2009
Location: Viņa del Mar, Chile
Old 08-01-2014 , 21:40   Re: Block breaking func_breakable with nades
Reply With Quote #5

While searching I've found there's no important code in CBreakable's touch forward, so you will just need to block it.

PHP Code:
register_touch("func_breakable""grenade""CBreakable_BreakTouch")

public 
CBreakable_BreakTouch(iBreakableIdiGrenadeId)
     return 
PLUGIN_HANDLED
__________________
Quote:
Originally Posted by joropito View Post
You're right Metalicross
meTaLiCroSS 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 13:41.


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