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

Buckshot bullet type case is missing in FireBullets. #3046

Open
malortie opened this issue Feb 14, 2021 · 0 comments
Open

Buckshot bullet type case is missing in FireBullets. #3046

malortie opened this issue Feb 14, 2021 · 0 comments

Comments

@malortie
Copy link

malortie commented Feb 14, 2021

In older versions of the SDK, monster and player bullet types were handled in FireBullets, but player bullet types were later moved to FireBulletsPlayer in newer versions of the SDK.

Human grunts equipped with a shotgun call Shotgun(), which calls FireBullets with bullet type BULLET_PLAYER_BUCKSHOT. FireBullets is missing BULLET_PLAYER_BUCKSHOT, so it defaults to BULLET_MONSTER_9MM.

sk_plr_buckshot is set to 5 on all skills and sk_9mm_bullet is set to 5 on easy and medium skills, but is set to 8 on hard skill.

The following would need to be added in FireBullets:

case BULLET_PLAYER_BUCKSHOT:	
    // make distance based!
    pEntity->TraceAttack(pevAttacker, gSkillData.plrDmgBuckshot, vecDir, &tr, DMG_BULLET); 

    TEXTURETYPE_PlaySound(&tr, vecSrc, vecEnd, iBulletType);
    DecalGunshot(&tr, iBulletType);
    break;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant