Renamed a bunch of player stuff to pawn stuff and implemented extensive work on getting single-address 'netplay' code working. Not sure if I've created issues with single player but in theory it should all transfer across as if the player is simply always the host.
This commit is contained in:
23
data/pawn_base_data.gd
Normal file
23
data/pawn_base_data.gd
Normal file
@@ -0,0 +1,23 @@
|
||||
class_name PawnBaseData extends Resource
|
||||
|
||||
@export var name : String
|
||||
|
||||
@export var move_speed : float
|
||||
|
||||
|
||||
@export var life : int
|
||||
@export var max_life : int = 100
|
||||
|
||||
@export var ammo : int
|
||||
@export var max_ammo : int = 5
|
||||
@export var melee_damage : int
|
||||
@export var range_damage : int
|
||||
@export var range_time : float
|
||||
@export var melee_time : float
|
||||
@export var reload_time : float = 1.25
|
||||
|
||||
var model
|
||||
@export var portrait : Texture2D
|
||||
@export var nameplate : Texture2D
|
||||
|
||||
@export var starting_traps : Array[TrapSet] = [null, null, null]
|
||||
Reference in New Issue
Block a user