Detect brokeable things
Is there any way to detect brokeable things like windows, boxes, gratings and also hostages?
|
Re: Detect brokeable things
How do you want to detect them, and why?
---- The code below finds the breakable entity around a player, and returns the Entity ID of the first find. Code:
|
Re: Detect brokeable things
Quote:
|
Re: Detect brokeable things
1 Attachment(s)
Not sure if this works because of the EVENT in CS, but try this:
Code:
|
Re: Detect brokeable things
If i want kill all hostages at round start to ? And switch that on/off
PS: that script did work thanks. |
Re: Detect brokeable things
Reference:http://forums.alliedmods.net/showthread.php?t=42159
Note: Untested PHP Code:
|
Re: Detect brokeable things
Okay Cheap_Suit, you got me here.
Why did you declare the global variables as static? It's redundant, it's like calling it "global global". The best thing to do would be to just declare them in plugin_init, like so: Code:
Also, why did you make the remove_entity_by_classname function a stock? All that does is slow the compiler down and make it look like crap. Just make it a private function. If you were trying to make your script look nice and confusing, you failed. |
Re: Detect brokeable things
- Personal reasons even if its redundant and useless :mrgreen:. Unless it does something really terrible, then Ill change it.
- It's a modified right from fakemeta_util. #edit: Quote:
|
Re: Detect brokeable things
Thanks its working... hawk NoobInEverything would suit u actually better than for me..
|
Re: Detect brokeable things
Quote:
Quote:
Quote:
Quote:
|
| All times are GMT -4. The time now is 00:37. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.