arena.py bugfix

Small patches, updates, and extensions of preexisting code.
4 posts Page 1 of 1 First unread post
learn_more
Coder
Coder
Posts: 891
Joined: Sun Mar 24, 2013 9:59 pm


last few lines:
Code: Select all
        def on_flag_spawn(self, x, y, z, flag, entity_id):
            if not self.arena_enabled:
                return protocol.on_base_spawn(self, x, y, z, flag, entity_id)
            return HIDE_COORD
should be:
Code: Select all
        def on_flag_spawn(self, x, y, z, flag, entity_id):
            if not self.arena_enabled:
                return protocol.on_flag_spawn(self, x, y, z, flag, entity_id)
            return HIDE_COORD
Kuma
Scripter
Scripter
Posts: 758
Joined: Fri Mar 22, 2013 10:05 am


lol, hiding the base instead of the intel. I was never aware of this.
actually, when arena is disabled it would spawn the base at the flag coords
Last edited by Kuma on Tue Dec 03, 2013 3:49 am, edited 1 time in total.
learn_more
Coder
Coder
Posts: 891
Joined: Sun Mar 24, 2013 9:59 pm


there is a bug in flagreturn.py aswell, ill fix that later.
(it doesnt update the flag location on advancing to the next map)
izzy
Head Admin / Co-founder
Head Admin / Co-founder
Posts: 474
Joined: Tue Oct 09, 2012 8:16 pm


Thanks, fix applied to all aloha.pk arena servers.
4 posts Page 1 of 1 First unread post
Return to “Snippets”

Who is online

Users browsing this forum: No registered users and 4 guests