Wrong IProjectile.ProjectileItem value

Did you encounter a problem, exploit, glitch or bug while playing the game or running the dedicated server software? Tell us about it here.
Forum rules
By using the forum you agree to the following rules. For this forum you also need to follow these additional rules.
Post Reply
NearHuscarl
Superfighter
Superfighter
Posts: 97
Joined: Thu Feb 07, 2019 4:36 am

Wrong IProjectile.ProjectileItem value

Post by NearHuscarl » Fri Mar 18, 2022 8:15 am

When you use the tommy gun, the IProjectile.ProjectileItem value is

Code: Select all

ProjectileItem.SUB_MACHINEGUN
instead of

Code: Select all

ProjectileItem.TOMMYGUN

Code: Select all

private static void OnProjectileCreated(IProjectile[] projectiles)
{
    foreach (var projectile in projectiles)
    {
        // If it's a tommy gun: SUB_MACHINEGUN False True
        // If it's a SMG: SMG True False
        Game.WriteToConsole(projectile.ProjectileItem, projectile.ProjectileItem == ProjectileItem.SMG, projectile.ProjectileItem == ProjectileItem.SUB_MACHINEGUN);
    }
}
1 x
Image

Post Reply