summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: fededec)
raw | patch | inline | side by side (parent: fededec)
author | Challenge9 <letsgo9632@gmail.com> | |
Tue, 25 Apr 2023 20:55:53 +0000 (23:55 +0300) | ||
committer | TerminalHash <lyashuk.voxx@gmail.com> | |
Wed, 26 Apr 2023 10:53:50 +0000 (13:53 +0300) |
src/game/g_player.pas | patch | blob | history |
diff --git a/src/game/g_player.pas b/src/game/g_player.pas
index 92e2902aa82105d0169cdc71664e1797e9f95906..a7afb5c9d17116a2ed8a5624ec881c62124056c7 100644 (file)
--- a/src/game/g_player.pas
+++ b/src/game/g_player.pas
gPlayers[a].FActualModelName := ModelName;
gPlayers[a].SetModel(ModelName);
+ if Bot and (g_Force_Model_Get() <> 0) then
+ gPlayers[a].SetModel(g_Forced_Model_GetName());
// Íåò ìîäåëè - ñîçäàíèå íå âîçìîæíî:
if gPlayers[a].FModel = nil then
// create entity and load state
if Bot then
- gPlayers[a] := TBot.Create()
+ begin
+ gPlayers[a] := TBot.Create();
+ if (g_Force_Model_Get() <> 0) then
+ gPlayers[a].SetModel(g_Forced_Model_GetName());
+ end
else
gPlayers[a] := TPlayer.Create();
gPlayers[a].FPhysics := True; // ???