HarpNetStudios / cardboard

An in-house engine for some of our games, like Carmine Impact!
https://harpnetstudios.com
27 stars 6 forks source link

`chainsawhudgun` set to zero does not work #35

Closed yellowberryHN closed 2 years ago

yellowberryHN commented 2 years ago

disables idle sound, and makes a strange sound instead.

garsipal commented 2 years ago

The strange sound is nothing more than S_PUNCH1, the default sound for the chainsaw defined in guninfo. It sounds weird because the attackdelay of the chainsaw was reduced to 10. By setting chainsawhudgun to 0 you just disable attackchan and idlechan but this does not stop the gun (chainsaw) default sound from playing, nor it prevents the engine from rendering the chainsaw hudgun model if I'm not mistaken (this should also happens in Cube 2).

yellowberryHN commented 2 years ago

Ah, that does explain that behavior. I feel like it should act slightly differently, I'll have to look into it.

yellowberryHN commented 2 years ago

Resolved in https://github.com/HarpNetStudios/cardboard/commit/6dc7a2070a4a2940d781268ac2f74a87e0e85bd5 by removing it entirely, the entire melee weapon code will be reworked anyways.