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

[HELP] How can I remove breakable objects from maps in CS:GO?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ZeaZe
Member
Join Date: Apr 2011
Old 08-03-2015 , 00:51   [HELP] How can I remove breakable objects from maps in CS:GO?
Reply With Quote #1

Doors, windows and ventilator.. grills? or whatever they called? Anyone, please?
Thanks in advance.
ZeaZe is offline
Sreaper
髪を用心
Join Date: Nov 2009
Old 08-03-2015 , 00:58   Re: [HELP] How can I remove breakable objects from maps in CS:GO?
Reply With Quote #2

Are you actually wanting a scripting response or something that's already made?

Assuming it works in CS:GO, Stripper:Source can achieve what you want.

Last edited by Sreaper; 08-03-2015 at 01:00.
Sreaper is offline
shortguy
Member
Join Date: Jul 2009
Old 08-03-2015 , 01:03   Re: [HELP] How can I remove breakable objects from maps in CS:GO?
Reply With Quote #3

If you are looking for a scripting response,

Doors: `prop_door_rotating`
Vents: `func_breakable`
Glass/Windows: `func_breakable_surf`

Iterate through the classes using
FindEntityByName
and then Kill them using
AcceptEntityInput(ent, "Kill")

Last edited by shortguy; 08-03-2015 at 01:08. Reason: Added windows
shortguy is offline
ZeaZe
Member
Join Date: Apr 2011
Old 08-04-2015 , 10:24   Re: [HELP] How can I remove breakable objects from maps in CS:GO?
Reply With Quote #4

Not sure what I'm wanting, just some kind of response. Guess this'll do, I'll just sent it forward to my scripter and see
Not sure if it's script or a plugin I'm looking for though

Last edited by ZeaZe; 08-04-2015 at 11:05.
ZeaZe is offline
ZeaZe
Member
Join Date: Apr 2011
Old 08-09-2015 , 05:54   Re: [HELP] How can I remove breakable objects from maps in CS:GO?
Reply With Quote #5

Quote:
Originally Posted by shortguy View Post
If you are looking for a scripting response,

Doors: `prop_door_rotating`
Vents: `func_breakable`
Glass/Windows: `func_breakable_surf`

Iterate through the classes using
FindEntityByName
and then Kill them using
AcceptEntityInput(ent, "Kill")
Not sure why it doesn't work, but only the one-hit objects like thin glass windows and vents are removed - not any kind of door.
ZeaZe is offline
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 08-09-2015 , 07:01   Re: [HELP] How can I remove breakable objects from maps in CS:GO?
Reply With Quote #6

func_door is missing from that list
__________________
Neuro Toxin is offline
ZeaZe
Member
Join Date: Apr 2011
Old 08-10-2015 , 06:50   Re: [HELP] How can I remove breakable objects from maps in CS:GO?
Reply With Quote #7

Quote:
Originally Posted by Neuro Toxin View Post
func_door is missing from that list

You mean like func_door_rotating?

EDIT - This is the code not working on doors, but only the windows, vents etc as explained in a post above.:
while ((entity = FindEntityByClassname(entity, "func_door")) != INVALID_ENT_REFERENCE||(entity = FindEntityByClassname(entity, "func_breakable")) != INVALID_ENT_REFERENCE||(entity = FindEntityByClassname(entity, "func_breakable_surf")) != INVALID_ENT_REFERENCE||(entity = FindEntityByClassname(entity, "prop_door_rotating")) != INVALID_ENT_REFERENCE) {
AcceptEntityInput(entity, "Kill");
}

Last edited by ZeaZe; 08-10-2015 at 06:59.
ZeaZe is offline
KissLick
Veteran Member
Join Date: Nov 2012
Location: void
Old 08-10-2015 , 07:09   Re: [HELP] How can I remove breakable objects from maps in CS:GO?
Reply With Quote #8

Use SDKHooks:
  1. Hook entity created
  2. If hooked entity is breakable, hook entity spawned
  3. In spawned hook - kill the entity
KissLick is offline
ZeaZe
Member
Join Date: Apr 2011
Old 08-10-2015 , 07:11   Re: [HELP] How can I remove breakable objects from maps in CS:GO?
Reply With Quote #9

tried func_prop_door_rotating aswell.. doesnt work either, uhh
ZeaZe is offline
ZeaZe
Member
Join Date: Apr 2011
Old 08-10-2015 , 07:12   Re: [HELP] How can I remove breakable objects from maps in CS:GO?
Reply With Quote #10

Quote:
Originally Posted by KissLick View Post
Use SDKHooks:
  1. Hook entity created
  2. If hooked entity is breakable, hook entity spawned
  3. In spawned hook - kill the entity
Will try this, responding in a sec

EDIT: Not quite sure how this will work at destroying them, as there's no destruction function within it?
and something about the kill function is not in the sdkhooks library..?

Last edited by ZeaZe; 08-10-2015 at 07:16.
ZeaZe 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 05:18.


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