1. pdr

    pdr

    So, I spent some time digging the assembly, but haven't found anything useful for my question, which is - if we can increase the lifetime of a bullet (for example). As u know, they are being despawned after some time, even if they didn't hit objects. I'm trying to make a plugin, which will make them stay alive until they hit something (And I know, it might cause performance issues, its just an experiment, ok?)
     
  2. You can spawn similar projectile on death
     
  3. One of the most worst advices that I've ever seen.
     
  4. pdr

    pdr

    Actually, yeah, agreed... Also I dont think its possible, cuz u must have the attacker, which will add direction of a bullet.
     
  5. Set the .drag and .gravityModifier each to zero. I know it works for rockets, because eventually a rocket in the sky gets too far and the game complains.

    "Invalid Position: rocket_basic[10023061] (299.8, 4025.2, -727.7) (destroying)"

    Also, have you noticed that the OnCreateWorldProjectile hook doesn't seem to trigger? At least for me.

    Code:
            object OnCreateWorldProjectile(HitInfo info, Item item)
            {
                Puts("OnCreateWorldProjectile works!");
                return null;
            }
    
     
  6. pdr

    pdr

    As far as I know, this hook might not be triggered, cuz of exact same thing - it does not have owner (I might be wrong.) An my question was - if we can expand lifetime of existing projectile? Because, if ill try to do it your way - ill have to call plugin on every shot, and now imagine, what happens, if 4 tough guys with m249 each, decide to raid house with explosive bullets.
    As we found nothing - i think, that bullet is a part of weapon asset maybe.