Quote:
Originally Posted by Darkhand
I'm trying to plug an exploitable hole in a map with a point_hurt (to punish those who try to use it ) but need to trigger it with a TurnOn input to enable its damage. What can I use to automatically and permanantly trigger a point_hurt?
|
Quote:
Originally Posted by AtomicStryker
A code like this perhaps
PHP Code:
public OnMapStart() { new maxentities = GetMaxEntities(); decl String:classname[128]; for (new i = 32; i <= maxentities; i++) { if (!IsValidEntity(i)) continue; GetEdictClassname(i, classname, sizeof(classname)) if (StrEqual(classname, "point_hurt", false)) { AcceptEntityInput(i, "TurnOn"); } } }
|
While a great idea, for the record I solved it using only Stripper... A logic_auto entity to trigger the point_hurt at every round start:
Code:
add:
{
"origin" "-1234 1945 -438.224"
"targetname" "SploitFix"
"DamageType" "256"
"DamageDelay" "1"
"Damage" "666"
"DamageRadius" "96"
"classname" "point_hurt"
}
{
"origin" "-1228.71 2082.29 -487"
"spawnflags" "1"
"classname" "logic_auto"
"OnMapSpawn" "SploitFix,TurnOn,,0,-1"
}