YaLTeR / BunnymodXT

Speedrun and TAS tool for Half-Life & friends.
Other
199 stars 37 forks source link

feature: add commands to set the player ammo value #366

Open Droooga opened 1 year ago

SmileyAG commented 1 year ago

Issue with infinite ammo is that those bxt_ch_ that are currently available (angles, health, armour, origin, velocity) are taken from the engine (hw.dll), so it is easy for us to maintain compatibility for all GoldSrc modifications, since across of them only game DLLs can changed (example: client.dll and hl.dll).

Ammo values cannot be obtained from the engine (hw.dll), since they are stored in the server-side (example: hl.dll), which means that we will have to support command each time for each single modification.

TLDR: not worth the trouble, better to use give command for obtain needed weapon ammo

UPD: I've reconsidered my position a little and I think to implement it, but instead it would to set the specified amount of ammo for needed types

YaLTeR commented 1 year ago

I agree it's likely more effort than it's worth, but I also thought the same about BXT HUD recoloring, and then it got implemented (and which also heavily relies on client.dll hooks and overrides). So yeah, not sure closing the issue is warranted.