ballistica
ballistica copied to clipboard
2D Mode (1.4.146)
Hey all, when I made a map for BombSquad, i wanted to make something like Happy Thoughts, but without flying. Any help?
Hey, if you take a look at Happy Thoughts source code under bastd/maps.py, you'll find part where it's setting up globals node:
https://github.com/efroemling/ballistica/blob/2ddb0d6eb419aa779d4a27690e23c09a83746732/assets/src/ba_data/python/bastd/maps.py#L1235-L1243
So you should set this happy_thoughts_mode
attribute (and probably self.is_flying too, but it seems like it is not used anywhere, probably just an easier way to determine is it flying map or not).
(This happy_thoughts_mode attribute is used later in bastd/actor/spaz.py, which finally makes spaz node fly. :partying_face: ) https://github.com/efroemling/ballistica/blob/2ddb0d6eb419aa779d4a27690e23c09a83746732/assets/src/ba_data/python/bastd/actor/spaz.py#L98
And if you want to remove this flying behaviour from your map, you should set gnode.happy_thoughts_mode
to False.
I want to leave happy thoughts bounds and delete his flying.
@Dymkar Hello, has your question been answered?
@Dymkar Hello, has your question been answered?
No
I want to leave happy thoughts bounds and delete his flying.
I waiting answer for this.
And if you want to remove this flying behaviour from your map, you should set
gnode.happy_thoughts_mode
to False.
Did you try this?
And if you want to remove this flying behaviour from your map, you should set
gnode.happy_thoughts_mode
to False.Did you try this? Yes, but bounds has been deleted. I just want to leave area of interesing bounds.
Can't you do something like gnode.canfly = False and disconnect can_fly from the PlayerSpaz after gnode.happy_thoughts_mode sets self.fly? I think that should keep the bounds but disallow the player from flying