Dear forum users! In compliance with the new European GDPR regulations, we'd just like to inform you that if you have an account, your email address is stored in our database. We do not share your information with third parties, and your email address and password are encrypted for security reasons.

New to the forum? Say hello in this topic! Also make sure to read the rules.

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