girl
01-10-2012, 13:56
I would really appreciate any information regarding demoman's grenades. I'm trying to make them not explode on their own, but setting the projectile, when it's fired...
SetEntPropFloat(iEntity, Prop_Data, "m_flDetonateTime", 999.0);
(where iEntity is the projectile after it's been fired)
Does nothing. Neither does constantly setting the m_bIsLive to 0 or 1 (it doesn't even explode under either condition), so I don't believe that is referring to the "live-ness" of the grenade. I've also tried setting m_flDetonateTime to 0.0 as a test, but the grenade doesn't immediately explode then, either.
I've searched, I think pretty extensively, but there's little documentation of tf_projectile_pipe. https://forums.alliedmods.net/showthread.php?t=93862 seems to suggest that m_flDetonationTime has no use or purpose.
Does anyone know how I could make longer and/or shorter lasting grenades? Ones that stick around forever when fired? I do have one solution in mind (making the grenade launcher shoot sandman balls that don't stun and explode on contact) but it's a little messy. I could try replace them with stickies, however, I'd like for all the tumble/roll physics of the grenade to remain in-tact.
SetEntPropFloat(iEntity, Prop_Data, "m_flDetonateTime", 999.0);
(where iEntity is the projectile after it's been fired)
Does nothing. Neither does constantly setting the m_bIsLive to 0 or 1 (it doesn't even explode under either condition), so I don't believe that is referring to the "live-ness" of the grenade. I've also tried setting m_flDetonateTime to 0.0 as a test, but the grenade doesn't immediately explode then, either.
I've searched, I think pretty extensively, but there's little documentation of tf_projectile_pipe. https://forums.alliedmods.net/showthread.php?t=93862 seems to suggest that m_flDetonationTime has no use or purpose.
Does anyone know how I could make longer and/or shorter lasting grenades? Ones that stick around forever when fired? I do have one solution in mind (making the grenade launcher shoot sandman balls that don't stun and explode on contact) but it's a little messy. I could try replace them with stickies, however, I'd like for all the tumble/roll physics of the grenade to remain in-tact.