You are not logged in.
Pages: 1
Please include the ability to delete by all keys; not only by origin.
Cause some entities have no origin, but something else which makes them unique enough. Sometimes for example all explosive barrels in a map have same dmg. So one delete statement could remove em all.
Offline
Offline
Oh! I totally forgot this thread sorry ^^
Could you please provide me an example of mapscript you'd like to be able to use with this new feature ? I'm not that good at mapscripting and i think an example would definitely help me modifying the delete statement behavior.
Offline
http://wet.peyote.ch/wet-resources/Spaw … nal.script
http://wet.peyote.ch/wet-resources/Spaw … iss.script
http://wet.peyote.ch/wet-resources/Spaw … _v1.script
Each of these scripts fixes some issue in the map, and it does that by deleting the entity, and then creating it again with other values.
There was a special mod for Quake 3 based games, QMM - it has a plugin called QMM Stripper - which was able to alter all entities in a map. Maybe that helps in your coding quest - probably not much..
http://bunker2.aaxxss.com:8080/stripper_qmm.zip
Offline
I've added this feature, but unfortunately, i cannot test it right now. I'm pretty sure it works but i'd like to test it before releasing a new public build.
Offline
Could be done with lua too.
The following is an example, it just needs a counter like do this after 30 sec.
function et_RunFrame( levelTime )
mapname = et.trap_Cvar_Get( "mapname" )
for i = 64, 1021 do
if mapname == "adlernest" then
if et.gentity_get(i, "origin") == "733 -2971 -120" then
et.trap_UnlinkEntity( i )
end
elseif mapname == "reactor_final" then
if et.gentity_get(i, "classname") == "func_door" then
et.trap_UnlinkEntity( i )
end
elseif mapname == "2hide_cal_r1" then
if et.gentity_get(i, "origin") == "-3797 -768 352" or et.gentity_get(i, "model") == "*82" then
et.trap_UnlinkEntity( i )
end
elseif mapname == "stargate_1945" or mapname == "fueldump" or mapname == "nomercy" then
if et.gentity_get(i, "classname") == "trigger_hurt" then
et.trap_UnlinkEntity( i )
end
elseif mapname == "uje_vulcano_escape" then
if et.gentity_get(i, "classname") == "target_push" or et.gentity_get(i, "origin") == "-4146.49 -1895.74 679.77" or et.gentity_get(i, "origin") == "-3890.49 -279.74 543.77" or et.gentity_get(i, "origin") == "-2424.11 -2265.48 311.77" or et.gentity_get(i, "origin") == "-1424.26 -2130.49 63.77" or et.gentity_get(i, "classname") == "info_notnull" then
et.trap_UnlinkEntity( i )
end
elseif mapname == "bucket_v2" then
if et.gentity_get(i, "classname") == "target_kill" or et.gentity_get(i, "classname") == "trigger_hurt" or et.gentity_get(i, "target") == "axis_killer" or et.gentity_get(i, "target") == "allies_killer" then
et.trap_UnlinkEntity( i )
end
elseif mapname == "odenthal_b2" then
if et.gentity_get(i, "targetname") == "sideentrance" then --remove sideentrance odenthal_b2 @ e8
et.trap_UnlinkEntity( i )
end
elseif mapname == "trooptrain" then
if et.gentity_get(i, "model") == "*45" or et.gentity_get(i, "model") == "*46" or et.gentity_get(i, "model") == "*49" or et.gentity_get(i, "model") == "*50" then
et.trap_UnlinkEntity( i )
end
end
end
end
Made Hide&Seek mod: http://forums.warchest.com/showthread.p … -Seek-pack
Creator of Infected Mod: http://forums.warchest.com/showthread.p … d-Infected
Offline
Offline
Thats amazing Micha!
Can you also add an entity like that? Or is that only possible for some?
Not sure, but I don't think so. Creating stuff can be done with mapscript:
create
{
scriptname "wheel"
targetname "wheel"
origin "1256 -1125 -330"
angles "0 170 90"
classname "misc_gamemodel"
modelscale 1
contents 1
mins "-20 -20 -100"
maxs "20 20 52"
clipmask 1
model "models/mapobjects/blitz_sd/blitzwheelsf.md3"
}
create
{
scriptname "newdoor1"
targetname "newdoorr1"
classname "func_door_rotating"
allowteams "4"
origin "-5357 -2540 555"
type "5"
model "*45"
}
Just pm me if you need help with removing objects with lua. I use this way for my infected mod to remove stuff like mg42, doors, hurts,...
Made Hide&Seek mod: http://forums.warchest.com/showthread.p … -Seek-pack
Creator of Infected Mod: http://forums.warchest.com/showthread.p … d-Infected
Offline
Pages: 1