"no unit corpses" lua script buggy
Posted: 11 Oct 2009, 00:43
units that are added by map will leave corpse
Open Source Realtime Strategy Game Engine
https://springrts.com/phpbb/
Code: Select all
function gadget:AllowFeatureCreation(featureDefID, teamID, x, y, z)
local featureName = (FeatureDefs[featureDefID].tooltip or "nil")
if string.find(featureName, 'Wreckage') then
return false
elseif string.find(featureName, 'Shards') then
return false
elseif string.find(featureName, 'Rubble') then
return false
elseif string.find(featureName, 'Heap') then
return false
end
return true
end
Code: Select all
[tllmedfusion_dead]
{
Description=Fusion Wreckage;
Object=tllmedfusion_dead;
Featuredead=tllmedfusion_heap;
Footprintx=5;
Footprintz=5;
Height=12;
Blocking=1;
Metal=2500;
Damage=3000;
}
[tllmedfusion_heap]
{
Description=Fusion Debris;
Object=4x4c;
Footprintx=5;
Footprintz=4;
Blocking=0;
Metal=1250;
Damage=1500;
}
Just rename to one of the 4 possibilities.TradeMark wrote:that "debris" one.
and re-upload all my maps? lol...SirMaverick wrote:Just rename to one of the 4 possibilities.TradeMark wrote:that "debris" one.
Code: Select all
function gadget:AllowFeatureCreation(featureDefID, teamID, x, y, z)
local featureName = (FeatureDefs[featureDefID].tooltip or "nil")
if string.find(featureName, 'Teeth') then
return true
end
if string.find(featureName, 'Wall') then
return true
end
return false
end