Posted: Sat Sep 19, 2009 12:24 am Post subject: CTF Flags as Inventory Items
Currently, there is no way to determine whether or not a player is carrying a flag through ACS. Lots of neat tricks could be done if this were possible, both in CTF maps and maps made specifically for "custom" game modes.
I propose that when a flag has been picked up, the player who is carrying it could have a dummy inventory item added to his or her inventory, and removed once he or she no longer carries the flag. The inventory item should probably be named the same as the pickup actors (like in the case of keys, for example).
Actor names for the flags are "RedFlag", "BlueFlag", "GreenFlag", "WhiteFlag", and "GoldFlag" (which afaik is unused at the moment).
So if those were added to the inventory, like keys for example, one could use ACS to check for their presence:
Script 1 (void)
Print(s:"You have the red flag!");
Print(s:"You don't have the red flag!");
Using this in combination with Team Keys, you can identify not only what team a player is on, but whether or not that player carries the enemy flag!
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum