Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delay before shooting on respawn is too short #335

squeek502 opened this issue Jun 29, 2017 · 0 comments


Copy link

@squeek502 squeek502 commented Jun 29, 2017

After reducing the time before the first shot after switching weapons for most weapons (fa9e40a), it is really easy to die while shooting, respawn, and continue shooting, whereas this was much less likely to happen before. Leads to a lot of accidental friendly fire and whatnot.

Just a reminder to myself to look into fixing this, could be a really easy fix.

EDIT: Could probably set the weapon's m_flNextPrimaryAttack here:

CBaseCombatWeapon *pSpawnWeapon = Weapon_OwnsThisType(weaponSpawn);
if(pSpawnWpn && pSpawnWeapon)
if(pSpawnWeapon == GetActiveWeapon() || Weapon_Switch(pSpawnWeapon))
pSpawnWeapon = Weapon_OwnsThisType(weaponDefault);
if(pDefaultWpn && pSpawnWeapon)

@squeek502 squeek502 added the bug label Jun 29, 2017
@squeek502 squeek502 closed this in 5db1982 Aug 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
1 participant
You can’t perform that action at this time.