summaryrefslogtreecommitdiff
path: root/godot/scenes/weapons/pistol.gd
diff options
context:
space:
mode:
Diffstat (limited to 'godot/scenes/weapons/pistol.gd')
-rw-r--r--godot/scenes/weapons/pistol.gd2
1 files changed, 1 insertions, 1 deletions
diff --git a/godot/scenes/weapons/pistol.gd b/godot/scenes/weapons/pistol.gd
index 219696b..10130a7 100644
--- a/godot/scenes/weapons/pistol.gd
+++ b/godot/scenes/weapons/pistol.gd
@@ -51,7 +51,7 @@ func attack1():
if player_owner.gun_ray.is_colliding():
var hit = player_owner.gun_ray.get_collider()
if hit.has_method("damage"):
- hit.rpc("damage", bullet_damage, "PIERCE", [player_owner.get_network_master(), player_owner.name], "using a pistol")
+ hit.rpc("damage", bullet_damage, {"type":"PIERCE", "attacker_net_id" : player_owner.get_network_master(), "attacker_name": player_owner.name, "weapon_name" : " pistol"})
else:
var puff = preload("res://particles/DirtPuff.tscn").instance()
player_owner.world.add_child(puff)