remove unneeded & made move funcs unreliable
This commit is contained in:
@@ -67,7 +67,7 @@ func get_character_properties(client_id):
|
||||
var to_send = clients[str(client_id)]
|
||||
rpc_id(client_id, "set_character_properties", to_send.duplicate())
|
||||
|
||||
@rpc("any_peer", "call_remote")
|
||||
@rpc("any_peer", "call_remote", "unreliable")
|
||||
func move_client(client_id, position):
|
||||
#if(settings["enableAntiCheat"]): if(position > 10): return # нормально допилить надо
|
||||
var client = clients[str(client_id)]
|
||||
|
||||
@@ -85,9 +85,9 @@ func _physics_process(delta):
|
||||
move_and_slide()
|
||||
if (!multiplayer.is_server()):
|
||||
Networking.move_client.rpc_id(1, multiplayer.get_unique_id(), $".".position)
|
||||
print("I am " + $"..".name +", belonging of " + str(multiplayer.get_unique_id()) + ", with internal ID: " + str(properties["internal_id"]))
|
||||
#print("I am " + $"..".name +", belonging of " + str(multiplayer.get_unique_id()) + ", with internal ID: " + str(properties["internal_id"]))
|
||||
|
||||
@rpc ("authority", "call_remote")
|
||||
@rpc ("authority", "call_remote", "unreliable")
|
||||
func move_puppet(p: Vector3, i_id):
|
||||
if (i_id == properties["internal_id"]):
|
||||
playerCharacterBody.position = p
|
||||
|
||||
@@ -1,25 +0,0 @@
|
||||
enum Class_type {
|
||||
Spectator = 0,
|
||||
Astra = 1,
|
||||
BlackArch = 2,
|
||||
Kali = 3,
|
||||
Debian = 4,
|
||||
Arch = 5,
|
||||
Windows11 = -1,
|
||||
WindowsServer = -2,
|
||||
MacOS = -3,
|
||||
WindowsXP = -4,
|
||||
Windows10 = -5
|
||||
}
|
||||
|
||||
var Distro = {
|
||||
HP = 100,
|
||||
AP = 100,
|
||||
HACK = 1.0,
|
||||
class_type = 0,
|
||||
}
|
||||
var Player = {
|
||||
distro = Distro,
|
||||
speed = 1.0,
|
||||
position = Vector3(0, 10, 0)
|
||||
}
|
||||
Reference in New Issue
Block a user