]> icculus.org git repositories - divverent/nexuiz.git/commit
cleanup: remove code to load w_*.zym weapon models;
authordiv0 <div0@f962a42d-fe04-0410-a3ab-8c8b0445ebaa>
Mon, 16 Mar 2009 07:19:57 +0000 (07:19 +0000)
committerdiv0 <div0@f962a42d-fe04-0410-a3ab-8c8b0445ebaa>
Mon, 16 Mar 2009 07:19:57 +0000 (07:19 +0000)
commit65d0276f3398500d3685a91acd6b8c60e62c92a0
tree361b2f2b1b3b0f39b2b411b8a5ab3951178e99b5
parent05857fc25bd0b2ee7f785146258971a302b6da43
cleanup: remove code to load w_*.zym weapon models;
instead make the loading of the v_ model only happen if the h_ model defines the "weapon" tag.
That way, the h_ model can be both an "invisible hand" model, or an old-style "full weapon" model.
Also, note that the engine loads ZYM models properly as ZYM even if renamed to dpm, so there is no need to try all extensions.

All in all, this saves quite some file open calls and should help with dedicated server performance, especially on operating systems with slow file opening (e.g. Windows with a running on-access virus scanner).

git-svn-id: svn://svn.icculus.org/nexuiz/trunk@6186 f962a42d-fe04-0410-a3ab-8c8b0445ebaa
data/qcsrc/server/cl_weaponsystem.qc
data/qcsrc/server/havocbot.qc
data/qcsrc/server/w_shotgun.qc