Milestone 5: Private Testing Release 1

Lot's of changes.
This commit is contained in:
patrick_pluto 2024-08-05 22:35:50 +02:00
commit 40100e8fee
90 changed files with 5741 additions and 156 deletions

View file

@ -1,10 +1,11 @@
## Copyright (C) 2024 Patrick_Pluto
## freeftf
## Copyright (C) 2024 Patrick_Pluto
##
## This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 3.
## This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
##
## This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
## This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
## You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
extends StaticBody3D
@ -19,19 +20,18 @@ func _process(delta):
living = false
func _on_area_3d_body_entered(body):
if body is StaticBody3D:
pass
elif body.beast and body.got_person and !occupied:
trapped_body = body.caught_body
occupied = true
living = true
body.lost_one()
trapped_body.frozen()
elif !body.beast and occupied and living and body != trapped_body:
trapped_body.unfreeze()
trapped_body._on_time_in_bag_timeout()
occupied = false
trapped_body = null
if body is CharacterBody3D:
if body.beast and body.got_person and !occupied:
trapped_body = body.caught_body
occupied = true
living = true
body.lost_one()
trapped_body.frozen()
elif !body.beast and occupied and living and body != trapped_body:
trapped_body.unfreeze()
trapped_body._on_time_in_bag_timeout()
occupied = false
trapped_body = null
func _on_timer_timeout():
if occupied and living: