A Community discussion forum for Halo Custom Edition, Halo 2 Vista, Portal and Halo Machinima

Home  Search Register  Login Member ListRecent Posts
  
 
»Forums Index »Halo Custom Edition (Bungie/Gearbox) »Halo CE Technical / Map Design »how do i make the vehicles that can be destroyed to respawn again?

Author Topic: how do i make the vehicles that can be destroyed to respawn again? (16 messages, Page 1 of 1)
Moderators: Dennis

ViciousWhiskers
Joined: Dec 19, 2007

Give it a try.


Posted: Nov 30, 2008 05:41 PM    Msg. 1 of 16       
the topic says it all, how do i make the vehicles that can be destroyed to respawn again?
i want to use cmt's collision model so the vehicles can explode, but then when i normally put the vehicles in the globals(not scripting it in), will it respawn still everytime EVEN WHEN I DESTROY IT?
OR do i have to script it in? if so, then what do i script in? plz help me


bobbysoon
Joined: Feb 1, 2007


Posted: Nov 30, 2008 06:29 PM    Msg. 2 of 16       
It's possible to exclude a vehicle from gameplay once it's destroyed
Have the vehicle created elsewhere, in a trigger volume. Have the script test the trigger volume for the vehicle, and then, if the vehicle is healthy, teleport it into the game.
So, you need an area outside the play area, inaccessable to the players. Create a trigger volume which surrounds it. Place the vehicle's spawn point in it.
Then, create a flag where you want it placed in-game. A flag, not a netgame flag.
open data\levels\test\your map\, and create a new folder called scripts, and open it
create a new text document, paste the script into it, and save it as "theScript.hsc".
the script:
(script continuous theScript
(sleep_until (= true (volume_test_object theVolume theVehicle)) 33)
(if (< 0 (unit_get_health theVehicle))
(object_teleport theVehicle theFlag)
;else
(sleep_until (= 0 1) 32767) ;until 0==1, re-testing every couple years
)
)
Thats untested, but it should work.
The trigger volume name: theVolume
the vehicle: theVehicle
the flag: theFlag


ViciousWhiskers
Joined: Dec 19, 2007

Give it a try.


Posted: Nov 30, 2008 06:45 PM    Msg. 3 of 16       
ty for the help but i dont really get what your script does, but all i want is when a vehicle gets destoryed, that vehicle will respawn again in like about 75 seconds later? so how do i do that?
Edited by evilkevin1 on Nov 30, 2008 at 06:45 PM


bobbysoon
Joined: Feb 1, 2007


Posted: Nov 30, 2008 07:59 PM    Msg. 4 of 16       
I misunderstood. Unfortunately, you cant. problem is, to reset the vehicle's health and permutation, you need it's name, which client-side scripts don't have. Only server side are the vehicles names valid. The client's are generic instances of the server's vehicles. So it's not possible, presently. "Open Sauce" may make this possible in the future, though


black doom
Joined: Oct 4, 2008

we will never stop, we can win the "impossible"


Posted: Dec 1, 2008 07:49 AM    Msg. 5 of 16       
Quote: --- Original message by: bobbysoon
I misunderstood. Unfortunately, you cant. problem is, to reset the vehicle's health and permutation, you need it's name, which client-side scripts don't have. Only server side are the vehicles names valid. The client's are generic instances of the server's vehicles. So it's not possible, presently. "Open Sauce" may make this possible in the future, though


longswords work fine.


ViciousWhiskers
Joined: Dec 19, 2007

Give it a try.


Posted: Dec 1, 2008 07:12 PM    Msg. 6 of 16       
Quote: --- Original message by: Pointer
you can, of course, make the vehicles not respawn at all within your game options (like slayer etc.)


so waht does that mean? im kinda confused

ALSO, aint Open Sauce already came out like a week or 2 ago?

Question:
and then how did CMT make H2 Coagulation with destroyable vehicles that can explode? adn then they respawn again like after a min or so.
Edited by evilkevin1 on Dec 1, 2008 at 07:13 PM


FoxtrotZero
Joined: Aug 3, 2008

Digging Foxholes by Profession


Posted: Dec 1, 2008 08:21 PM    Msg. 7 of 16       
What about giving the vehicle damage. It takes enough and it explodes with occupants killed. then its replaced with a husk of a dead vehicle. a while later this automatically disapears like a vehicle and the vehicle the reappears.

They take a hell of alot of beating, but i have seen longswords go down in pieces.
Edited by FoxtrotZero on Dec 1, 2008 at 08:22 PM


ViciousWhiskers
Joined: Dec 19, 2007

Give it a try.


Posted: Dec 1, 2008 09:20 PM    Msg. 8 of 16       
dude, u just said waht i wanted to say, thats what i awnt to know hwo to do, able to kill the veihlce then let it respawn again in a specific time after it is destroyed, and then delete the husk.

CMT did it for H2 Coagulation, so i want to know hwo to do it too.
(destroying vehicles is fun XD especially with ppl on it. XD)


Gamma927
Joined: Jun 12, 2008

Steam: gamma927


Posted: Dec 2, 2008 11:10 PM    Msg. 9 of 16       
Doesn't it respawn by itself?


ViciousWhiskers
Joined: Dec 19, 2007

Give it a try.


Posted: Dec 3, 2008 04:16 PM    Msg. 10 of 16       
apparently, thats what im trying to find out myself, i dont think it will respawn again after i destroy it, and in H2 Coagulation, when i went to units, and then vehicles, there was a destroyed hog on the top of the gulch, so i thought that i had to script the vehicles to spawn again after it was destroyed since there was the destroyed hog on the mountain.


megahalofan12
Joined: May 21, 2008

Xbox Live/Xfire is: matthewdratt


Posted: Dec 3, 2008 05:08 PM    Msg. 11 of 16       
In Coldsnap there isnt Mytho or Longsword parts lying around on the cliffs.
All the parts of the longsword where different vehicles, so apparently once destroyed if replaces it with 3 different vehicles


ViciousWhiskers
Joined: Dec 19, 2007

Give it a try.


Posted: Dec 3, 2008 05:50 PM    Msg. 12 of 16       
u dont understand what i want to know,
i was saying that i have a vehicle that can be destroyedd right?
so, when i destroy it, it then will turn into different destroyed parts, liek the longsword u said, it will be destroyed and then have different parts afterwards.
So what i want to know is, that when i destroy the vehicle, WILL IT RESPAWN AGAIN?

SO IF IT doesnt respawn when i destroy it, then do i have to script it in? and IF YES I HAVE TO SCRIPT, then WHAT DO I DO for the SCRIPT?


Molonky500
Joined: Aug 30, 2008

Xfire;killermax5


Posted: Dec 3, 2008 11:59 PM    Msg. 13 of 16       
Theres a very simple way to make them reapear,when the vehicle explodes make an invisable no muable projectile, and in its detonation u make it have an effect that makes a vehicle apear


ViciousWhiskers
Joined: Dec 19, 2007

Give it a try.


Posted: Dec 4, 2008 11:35 AM    Msg. 14 of 16       
yea i already knew that yesterday, but thanks anway, i just found out about it in the effects


FoxtrotZero
Joined: Aug 3, 2008

Digging Foxholes by Profession


Posted: Dec 4, 2008 10:29 PM    Msg. 15 of 16       
If you make it so a vehicle eventually takes enough damage and is replaced with a husk, the vehicle will respawn. Or at least it should.


ViciousWhiskers
Joined: Dec 19, 2007

Give it a try.


Posted: Dec 5, 2008 11:25 AM    Msg. 16 of 16       
no it wont, u need to create an effect and make a projectile while its exploded, then make the projectile detonate in like how much seconds u want and then create another effect for the projectile and that effect will be the respawning effect

 

 
Previous Older Thread    Next newer Thread







Time: Fri January 20, 2023 10:22 PM 141 ms.
A Halo Maps Website