FWGS / hlsdk-portable

Portable Half-Life SDK. GoldSource and Xash3D. Crossplatform.
https://xash.su
Other
272 stars 125 forks source link

A branch without client weapons #279

Open FreeSlave opened 2 years ago

FreeSlave commented 2 years ago

Old mods didn't use a prediction code. It would be nice to have a branch that could serve as a base for such mods. It also could be a good demonstration (by using diff) of what needs to be changed to have server-only weapons in the mod.

nekonomicon commented 2 years ago
  1. We can fix weapons behavior without CLIENT_WEAPONS definition in master branch.
  2. Mods which based on HLSDK 2.0-2.2 has playback events for guns.
  3. Mods which based on HLSDK 1.0 requires to rebase all codebase.
FreeSlave commented 2 years ago

We can fix weapons behavior without CLIENT_WEAPONS macro in master branch.

That would be a good start. Also should do this for Opposing Force weapons (and check them with cl_lw 0 when CLIENT_WEAPONS is enabled).

nekonomicon commented 2 years ago

AFAIR, Opposing Force has special cvar sv_serverweapons or something like that.

FreeSlave commented 2 years ago

Opfor has sv_oldweapons, but we don't keep a compatibility with original opfor dlls anyway.