PDA

View Full Version : Classic HL weapons crashes server when used on PvP maps



Julcoool
19-06-2016, 11:18 PM
At least for me, if I use the classic HL weapon scripts included in the game, to be used in PvP maps, server will end up crashing with the following error:


FATAL ERROR (shutting down): SV_ModelIndex: model 0 not precached

This crash happens very often but at random, just at the very moment one player kills another player.

...Why?

KernCore
19-06-2016, 11:39 PM
something is calling a model called 0, verify the code and search for something like this (probably the crowbar).

Julcoool
19-06-2016, 11:52 PM
Huh, you were right. This is the faulty line:


self.m_pPlayer.pev.viewmodel = 0; // Line 82

Changed 0 to 1 and the problem was fixed.

Nero
21-06-2016, 02:14 PM
Yeah the hl_weapons currently in the game are bugged and shiet. Working on them :3