[bfprog] Disabling C4 near flag for CTF

Andreas Fredriksson deplinenoise at gmail.com
Tue Feb 7 12:47:52 PST 2006


On 2/7/06, Brigham Stevens <brs at vikingmind.com> wrote:
> I've done a lot of research on this and almost have my code ready for
> release.........
>
> I found out something about setPosition though, it only seems to work on
> PlayerControlObject's and the c4 on the map (a
> "c4_explosives_Projectile") does not seem to be one... I try to move it
> to (1,1,1) or even just changing the Y (vertical) axis to 1, which would
> be below the map on most maps! No Joy.... The C4 remains, and the timer
> task that was looking for it dies when I call setPosition.

I don't remember the details exactly, but maybe the C4 projectile has
an armor object, so you could perhaps try destroying it as soon as it
is dropped within the flag radius.

That way it wouldn't stay behind even if a player throws it in.

// Andreas
--
Those who live by the sword get shot by those who don't.


More information about the BFProg mailing list