I did not find anything in dvar, mines already not alive, and they can not be seen but planting not possible, after death and after (set scr_landmine_vanish_time 120)
Printable View
I did not find anything in dvar, mines already not alive, and they can not be seen but planting not possible, after death and after (set scr_landmine_vanish_time 120)
Yep, there was a bug. I forgot to reset the total team landmines allowed each time a player dies. This fixes it:
Please edit _landmines.gsc:
Just editing that function will fix it.Code:deleteLandmines()
{
for( i=0; i < self.landmine_array.size; i++ )
{
if( isDefined( self.landmine_array[i] ) )
{
self.landmine_array[i] delete();
if( level.teamBased )
{
if( game["landmine_team"][self.pers["team"]] )
game["landmine_team"][self.pers["team"]]--;
}
else
{
if( game["landmine_team"] )
game["landmine_team"]--;
}
}
}
self.landmine_array = [];
}
ok, i was about to explain. But i will say short, when i make suicide by grenade, all landmines was become invisible and i can't not planting even after 2 minutes.
..and when i make suicide by one landmine and after death i can planting only one landmine (all landmines was become invisible too)
ok, i go edit and testing
Did not help. Are still the same problem. also in DM
Success! ) it's work, Thank You!
All the same it need change first number here to "10" because in TDM can planting still only 5
game["landmine"]["limit"] = cvardef( "scr_landmine_limit", 10, 1, 20, "int" );
i make screen:Spoiler:
First edit the code to this:
Then, using the dvars I posted above, set the max number of mines to something stupid like this:Code:game["landmine"]["limit"] = cvardef( "scr_landmine_limit", 10, 1, 9999, "int" );
Code:// number of betties allowed at any one time
set scr_landmine_limit 500
ah, ok
probably I'm blind or incorrectly translated
This code need to add on my server.cfg ?
// number of betties allowed at any one time
set scr_landmine_limit 10
Work fine only with this code
game["landmine"]["limit"] = cvardef( "scr_landmine_limit", 10, 1, 9999, "int" );
Ah, It's clear. I just did not understanded what is dvars. This is settings for mods.
Thank You!
Now there is material with which i can work long time and do not stumbles on the spot
Hello, I want to use this mod, unfortunately I get the error message, can someone help me what I have to do.
Thx
script compile error *******
unknown function: (file 'demon/_utils.gsc', line 540)
spawnpoints = maps\mp\gametypes\_spawnlogic::getSpawnpointArray( spawnname );
if
it == 540 line, check:Code:spawnpoints = maps\mp\gametypes\_spawnlogic::getSpawnpointArray( spawnname );
1. existence file: _spawnlogic.gsc in dir "maps\mp\gametypes"
2. existence function getSpawnpointArray( spawnname ) in dir: maps\mp\gametypes, file: _spawnlogic.gsc
The function does not originally exist in COD2:
From MW2:
Try this version:PHP Code:
getSpawnpointArray( classname )
{
spawnPoints = getEntArray( classname, "classname" );
if ( !isdefined( level.extraspawnpoints ) || !isdefined( level.extraspawnpoints[classname] ) )
return spawnPoints;
for ( i = 0; i < level.extraspawnpoints[classname].size; i++ )
{
spawnPoints[ spawnPoints.size ] = level.extraspawnpoints[classname][i];
}
return spawnPoints;
}
PHP Code:
getSpawnpointArray( classname )
{
spawnPoints = getEntArray( classname, "classname" );
return spawnPoints;
}
Hi guys, thanks for the help, but I thought the zzz_tellermine2.iwd is a stand alone version. I insert that code on 540 line and get a new error message
Could not find script 'maps/mp/gametypes/_class': (file 'demon/_utils.gsc', line 613)
iDamage = maps\mp\gametypes\_class::modified_damage( player, eAttacker, iDamage, sMeansOfDeath );
It is probably not a stand alone version because gsc files are always missing. Maybe someone has a finished stand alone version for me? That would be great
Thx Schenk