Spawn protection via entity editing?
ratty
02-21-2006, 07:46 AM
Would it be possible to hack in spawn protection via entity editing? You can add in trigger_hurt's to dod_kalt no problem.. But the first problem that comes to mind doing that is, you need something to tie it to, using that "model" keyword, like "model" "*13" or whatever. I think its called a brush? It defines the volume of space they walk into to trigger it..
Could you attach it to another object that exists already like the sandbags? Or does it have to be a special thing?
I don't know how that all links together so I'm probably saying really stupid things here, which is why I'm asking you mapper guys.
FuzzDad
02-21-2006, 09:24 AM
Valve is looking at ways to do so but maps are setup differently than the game itself. There are ways to add point entities but not brush-based entities. Mugsy has talked about a binary map setup that would allow updates like that but they would have to update how maps are built first. Remember that maps are compiled so it's a different rule set to updating them.
[SAS]==Colster==
02-21-2006, 12:15 PM
If you can find a good shaped entity you can reuse that model number as your area.
I re-use the bombzone template in my CS:S conversions as the cap area for flags but in tides I also used it for spawn protection.
You can do this EntEd using x,y & z co-ords from the map.
{
"origin" "1070 -977 236"
"targetname" "Filter_axis_only"
"filterteam" "3"
"Negated" "Allow entities that match criteria"
"classname" "filter_activator_team"
}
{
"origin" "-232 -844 236"
"targetname" "Filter_allied_only"
"filterteam" "2"
"Negated" "Allow entities that match criteria"
"classname" "filter_activator_team"
}
{
"model" "*3"
"origin" "75 1188 -109"
"spawnflags" "1"
"damagemodel" "1"
"damagetype" "2"
"damagecap" "20"
"damage" "40"
"filtername" "Filter_allied_only"
"StartDisabled" "0"
"targetname" "Axis Spawn Protection"
"classname" "trigger_hurt"
}
{
"model" "*3"
"filtername" "axishudmessage"
"wait" "1"
"origin" "-1479 -532 58"
"spawnflags" "65"
"StartDisabled" "0"
"classname" "trigger_multiple"
"OnStartTouch" "alliedhudhint,ShowHudHint,,0,-1"
}
{
"origin" "75 1088 -109"
"targetname" "axishudhint"
"message" "Axis Spawn - Eingang Verboten"
"classname" "env_hudhint"
}
Something like that, the only problem I found was that although you get the x,y & z co-ords from running around in the map, it seems to offset by an amount so it means no-clipping around the map until you can find it, work out the offset and adjust the co-ords to bring it back to the right spot.
I tend to now use a mattie eventscript to boost players health for four seconds when they spawn as this is soo much easier and works for all maps.
http://www.mattie.info/cs/forums/viewtopic.php?t=3632
ratty
02-22-2006, 01:09 AM
I never heard of mattie event scripts, that looks awesome, thanks for the post.
Day of Defeat Forum Archive created by
Neil Jedrzejewski.
This in an partial archive of the old Day of Defeat forums orignally hosted by
Valve Software LLC.
Material has been archived for the purpose of creating a knowledge base from messages posted between 2003 and 2008.