Game Development Community

Mousebutton respawn

by Howard Dortch · in Torque Game Engine · 01/29/2005 (10:56 am) · 5 replies

How can I prevent the player from respawning with the mouse? I would like the player to stay dead for the duration of the startFade/delete routines.

#1
01/29/2005 (12:55 pm)
The client sends a commandToServer to the server when it wants to respawn. Just schedule() a call to the server version of that function, and ignore client calls to it. (Or rename it so client can't call it.)
#2
01/29/2005 (1:09 pm)
I dont see anywhere on the client for a call to server for respawn (assuming my find in files works). The only thing I can find is in the armor::onDisabled function where the startfade is. The only thing I see hooked to the mouse is the fire. Can you get me a bit closer?
#3
02/03/2005 (4:53 am)
I have been trying to track down the $mvTriggerCount0 global and can only find one such instance. I dont see how this is converted to onMouseDown event segregated into fire the weapon vs respawn vs click a button. Can anyone shed some light on the path this $mvTriggerCount0 takes to create the event?
When your player gets killed and you click the left mouse the player respawns. I can't find the path of code .
#4
02/03/2005 (6:14 am)
The respawn function is triggered from camera.cs.
Observer::onTrigger
case "Corpse":
%client.spawnplayer();
#5
02/03/2005 (6:25 am)
Thanks Billy! That was easy when you know what to look for! mouseDown, trigger, triggers, enter triggers all seem to blur together.