PDA

View Full Version : Is this possible? Capturing a thrown flag


Tsukasa
07-23-2008, 02:10 AM
I want to get the ball to capture itself if thrown on the cap point (eg shooting the ball). Obviously in the drop function you'd grab the player id and put that to a global variable, and thus can figure out which team threw it and such.

The problem is, there is no IsInfoScript check. Is there a way of doing this that i'm not seeing, or is this something that needs to be added to FF?

Dexter
07-23-2008, 05:25 AM
I think you might be able to do it with basecap : ontrigger. remove the player checks like

if IsPlayer( trigger_entity ) then
..


and so on and check if its a flag, and replace all the player checks with your global of whoever punted it, that mighttt work. You'd probably have to change the flag's touchflags and touch too. It'd probably be a performance risk with all those touch calls. Maybe if there is a touch bitfield for info scripts..

squeek.
07-23-2008, 05:30 AM
No, it's not possible AFAIK.

Tsukasa
07-23-2008, 10:20 AM
put it on the lua wishlist?

squeek.
07-23-2008, 11:00 PM
put it on the lua wishlist?
It's on there.

pF
07-27-2008, 03:29 AM
That'd be hella cool, even as an addition to regular gameplay (after balancing..)