AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Destroying Doors (https://forums.alliedmods.net/showthread.php?t=10595)

harbu 02-24-2005 05:58

Destroying Doors
 
Well when destroying a door in The Specialists mod with fakedamage() I used ""fakedamage(entid,"weapon_tsgun",1000.0, 0)"" for some odd reason it won't respawn again! I also tried to set the doors health with entity_set_float(entid,EV_FL_health,-9999.0) but that did not have any effect! So is there any way to destroy the doors with them respawning afterwards?

Sp4rt4n 02-24-2005 12:45

set it to whatever the wood is set to in front of the window near the bank, but with more damage (if you can figure that out)

harbu 02-24-2005 13:59

Quote:

Originally Posted by Sp4rt4n
set it to whatever the wood is set to in front of the window near the bank, but with more damage (if you can figure that out)

I dont understand how that would help? Since the doors in the map already respawn normaly when destroyed and they are breakable already..

TooL 02-24-2005 14:14

You might want to take a look at the breakable doors plugin - that might lead you in the right direction.

http://forums.alliedmods.net/showthread.php?t=6597

XxAvalanchexX 02-24-2005 15:03

TooL, that plugin is for CS (possibly other mods) where doors can't break by default. It simply moves them to an out-of-place location. In The Specialists, doors can be broken, and they respawn.

As for you, harbu, I'm not sure why they aren't respawning. You could try setting a task and forcing it to spawn again:

Code:
dllfunc(DLLFunc_Spawn,entid);

harbu 02-24-2005 15:19

Ahh thanks man!

TotalNoobScripter 02-24-2005 16:49

harbu, why would you need that function anyway?

If its in any relationship to SWAT, STOP STEALING MY IDEAS :D :D :D

harbu 02-25-2005 07:07

Stealing your ideas ehh? No? Someone suggested on my forums I should make one of those door battering thingys but I decided I want it rahter to explode..

Geesu 02-25-2005 08:52

I was gonna say instead of removing/destroying the entity, just change it's origin, move it off the screen and then move it back :)

Freecode 02-25-2005 12:48

lol Geesu ur Hack master #1


All times are GMT -4. The time now is 14:09.

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