PlaneShifter 0 Posted November 29, 2001 I have implemented vehicle respawn and several other features for a MP map I'm working on. Thing is, during testing, I found out that, at random, certain units will not respawn (including the player) if they die in the truck. This is easily reproduced in the mission by loading everybody in the truck, setting a satchel, getting in the truck, and setting off the charge. Sometimes you or some of your squadmates will not come back. If the player doesn't respawn, the game just sits there and all you can do is press ALT+F4 to quit out of the game. * How I'm doing things: A game logic unit called "SERVER", used to track which computer is the server via a "(local SERVER)" condition. The truck is "usTruck", an empty 5t Truck (Open). I have a NONE, ONCE trigger, condition "(local SERVER)", activation "usTruckPos = getPos usTruck; usTruckDir = getDir usTruck". I have a SWITCH, REPEATEDLY trigger with the condition "(local SERVER) AND !canmove usTruck" and a countdown of min: 60, max: 180, mid: 120. Activation is "usTruck lock TRUE; usTruck setdammage 0.5; usTruck setdammage 0.4; usTruck setdammage 0.3; usTruck setdammage 0.2; usTruck setdammage 0.1; usTruck setdammage 0.0; usTruck setPos usTruckPos; usTruck setDir usTruckDir; usTruck lock FALSE" The series of setdammage commands is what I came up with while experimenting, it seems to stop the truck from re-exploding (however, the model stays warped, even though the truck is perfectly useable). * Other respawn-related scripts I have going on: I have a series of triggers to re-arm the soldiers with their starting payloads upon respawn. For each soldier, I have a SWITCH, REPEATEDLY trigger, condition "(local SERVER) AND !alive unitname", activation blank, deactivation "unitname removeAllWeapons; unitname addWeapon "m16"; ... ; unitname selectWeapon "m16"", customized for each soldier payload. I have a SWITCH, REPEATEDLY trigger with condition "!alive player", activation "titleCut["You have been killed.","BLACK IN",5]", deactivation "titleCut["You have been killed.","BLACK OUT",1.5]" I also have similar respawn triggers for ammo boxes and tents, using "(local SERVER) AND !alive object" and using "setdammage 0". The ammo crates get cleared and rearmed manually upon respawning using clearWeaponCargo, addWeaponCargo, etc. *** If you have any idea what might be causing the respawn problem, please give me your advice! - PlaneShifter - Share this post Link to post Share on other sites
PlaneShifter 0 Posted November 29, 2001 I tried taking out the vehicle lock commands, but to no avail. Any help would still be greatly appreciated--I can't finish the map until this bug gets fixed! - PlaneShifter - Share this post Link to post Share on other sites