offload weapon/ammo counter update commands to the generic damagemodel

This commit is contained in:
AzaezelX 2025-12-28 14:19:17 -06:00
parent 7cad861536
commit 53ad8ccc6d
3 changed files with 81 additions and 0 deletions

View file

@ -23,6 +23,7 @@ function DamageModel::onCreateGameServer(%this)
%this.queueExec("./scripts/server/shapeBase");
%this.queueExec("./scripts/server/vehicle");
%this.queueExec("./scripts/server/player");
%this.queueExec("./scripts/server/commands");
}
//This is called when the server is shut down due to the game/map being exited
@ -35,6 +36,7 @@ function DamageModel::initClient(%this)
{
%this.queueExec("./guis/damageGuiOverlay.gui");
%this.queueExec("./scripts/client/playGui");
%this.queueExec("./scripts/client/client");
}
//This is called when a client connects to a server