maximum vehicle spawn

froesch

New Member
where can i change the maximum spawn for my vehicles?


we changed the default (11) in pMain function but the server launcher doesn't start properly if we change it to a higher value than 23.

Code:
BEGIN
 
    DECLARE iSpawnNumVeh SMALLINT(3) DEFAULT 23;

i was getting crazy when i saw we only got 11 vehicles on our 225 square kilometres map. we got around 50 on our saintly server. starting the pSpawn function 30 times is not an option for us...

----------------------

where can i change the timer for disappearing zombies/animals?




it is so short you can't loot it. feels like 10 sec or so... killing a cow and running to it - no time to get the steaks
 
Change it to:

Code:
CREATE DEFINER=`root`@`` PROCEDURE `pMain`()
BEGIN
 
    DECLARE iSpawnNumVeh SMALLINT(3) DEFAULT 0;
 
    CALL pCleanup();
    CALL pFixMaxNum;
 
    SELECT SUM(MaxNum) FROM object_classes INTO @iMaxNumTotal;
    IF (iSpawnNumVeh < @iMaxNumTotal) THEN
        SET iSpawnNumVeh = @iMaxNumTotal;
    END IF;
 
    WHILE (fGetVehCount() < iSpawnNumVeh) DO
        CALL pSpawn();
    END WHILE;
 
END

This will make it check the vehicle count you have on each individual vehicle instead of a "maximum".
 
Back
Top