[bfprog] Disabling C4 near flag for CTF
Brigham Stevens
brs at vikingmind.com
Tue Feb 7 12:23:58 PST 2006
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.
What I have been successful at: (not only C4 but Claymore too wherever
you see C4 below)
If a player walks into a certain radius of the flag pole with C4 they
are killed
If a player switches to C4 within a certain radius of the flag pole they
are killed
If a player drives into a certain radius of the flag pole with C4 on the
vehicle is they are destroyed
If a player gets kills (either TK or enemy) with C4 within a certain
radius of the flag they are killed, score dropped, and I'm working on
the timer part to ensure they get a long spawn time - I think I need to
change the spawn time for them after they are already dead
So you can basically stand outside the radius and throw C4 in, and that
is why I was trying to create a c4 sweep timer that looks for c4 near
the flag and moves it.. No joy on that part. But punishing players who
get kills (and escalating the punishment to include a temporary ban)
with c4 near the flag should quickly communicate to noobes not to do it,
and as usual people dedicated to being smak tards will continue to do so
regardless of how bad ass our python scripts are.
I have this working as a 'plugin' in the
mods\dcon\python\game\gamemodes it needs to call a function in the
gmp_ctf file to let the game mode know to drop the flags properly when a
player is killed by the script - other implementations of CTF that want
to use it may need to make some changes to call a simiiar function.
Seems like killing a player in a script should trigger the same
notifications as it does when it happens in game, but it does not appear
to be!
Matthew wrote:
> You should be able to setposition the C4 under the map, with no problem.
>
> ----- Original Message ----- From: "Brigham Stevens" <brs at vikingmind.com>
> To: <bfprog at lists.matureasskickers.net>
> Sent: Sunday, February 05, 2006 1:55 PM
> Subject: [bfprog] Disabling C4 near flag
>
>
>> Now that the CTF mod is out, I would like to investigate a (hopefully)
>> server side mod to disable all C4 within a certain radius of the flag
>> pole... I just wanted to check with the python experts on this list do
>> you think that is possible? Any pointers to get me started on
>> researching?
>>
>> Thanks in advance! I have been offline on the BF2 modding/scripting
>> front since the game was only conquest mode, but now that CTF is out I'm
>> ready to dig in again!
>> _______________________________________________
>> BFProg mailing list
>> BFProg at lists.matureasskickers.net
>> http://lists.matureasskickers.net/mailman/listinfo/bfprog
>
>
> _______________________________________________
> BFProg mailing list
> BFProg at lists.matureasskickers.net
> http://lists.matureasskickers.net/mailman/listinfo/bfprog
>
More information about the BFProg
mailing list