MinoMino / minqlx

Extends Quake Live's dedicated server with extra functionality and scripting.
GNU General Public License v3.0
112 stars 42 forks source link

Update python_embed.c #56

Closed roasticle closed 7 years ago

roasticle commented 7 years ago

PyMinqlx_ForceWeaponWait added. Working with my plugin for maps with custom weapon spawn times to use g_weaponrespawn cvar instead.

em92 commented 7 years ago

Example how it should look: https://github.com/MinoMino/minqlx/commit/842f77dfcf957254512dc8c0c3fda388f628e318

I have send pm to you in discord with explanation indents, function args and etc.

MinoMino commented 7 years ago

Thanks for the contribution.

em92 commented 7 years ago

Couldn't there just a cvar like qlx_enforceWeaponRespawn

To make this cvar work, we need to find out original weapon respawn times after changing wait property of entity.

jwinett commented 7 years ago

You mean how the map had them set? In case they're going to be returned to what they were?

em92 commented 7 years ago

You mean how the map had them set?

Yes. Weapons can have individual respawn times and ignore g_weaponRespawn (like in Bitter Embrace, afaik).

jwinett commented 7 years ago

Reloading the map isn't enough?

em92 commented 7 years ago

Reloading the map isn't enough?

Just checked. map_restart returnes individual respawn times back.