Home » Renegade Discussions » Mod Forum » Tiberian is hazardous to your health
Re: Tiberian is hazardous to your health [message #388241 is a reply to message #387678] |
Thu, 28 May 2009 02:21 |
|
reborn
Messages: 3231 Registered: September 2004 Location: uk - london
Karma:
|
General (3 Stars) |
|
|
I am struggling with this part here:
vloktboky wrote on Thu, May 05 2004 07:10 |
because of the sheer size of the crystal, the person who picks it up will not be able to enter a vehicle. There is simply not enough room in the tiny cockpits of the vehicles to put a large crystal. Therefore, if you enter a vehicle while holding the crystal, you will set the crystal down beside the vehicle before entering it. If it is not picked up again in 30 seconds, it will spoil
|
I cannot see how this would of worked. It has to spawn at the side of the vehicle, otherwise it would be destroyed if it was spawned at the players position (picking up the crystal with a vehicle causes a tiberian explosion, as if they're ramming it).
I managed to recreate this, by getting the players position when they enter the vehicle, then increasing the x and y coordinate by like 5.0f. Making it spawn at the side. But this is obviously a really crap way of doing it. If someone got in the vehicle near the edge of the map, it could potentially make the crystal spawn in an abyss. Or say they got in the vehicle near a rock, or building, or anywhere like that really, it would be pretty glitchy.
I was thinking of spawning the crystal at the players position (so it would be under the vehicle), then setting it to not be granted for a few seconds, allowing the vehicle to drive off. Or removing the whole principle of the crystal being destroyed when a vehicle runs over it, and just respawning it at the same position if a vehicle runs over it (if the vehicle sat on top of the crystal, it would just keep respawning immediately, but have no effect ont he vehicle itself)...
But I am really curious as to how it was possible to write it so that it spawned to the side of the vehicle without causing a glitch now and then.
I toyed with the idea of attaching a script to the crystal holder that recorded his position every second or so, then when he entered the vehicle, spawn the crystal where he was like two seconds ago. Because at least that way you know the crystal would be spawned at a position that was valid and not inside a rock or something. But I wince at that solution.
It's not a massive deal, if no one has a clue, then i'll probably just go with the idea of setting to to not grant the power-up for a few seconds when it is spawned from entering a vehicle. But I am just really interested now in how this was done.
[Updated on: Thu, 28 May 2009 02:22] Report message to a moderator
|
|
|
|
|
Tiberian is hazardous to your health
By: reborn on Sun, 24 May 2009 11:15
|
|
|
Re: Tiberian is hazardous to your health
By: slosha on Sun, 24 May 2009 11:29
|
|
|
Re: Tiberian is hazardous to your health
|
|
|
Re: Tiberian is hazardous to your health
By: reborn on Sun, 24 May 2009 12:07
|
|
|
Re: Tiberian is hazardous to your health
|
|
|
Re: Tiberian is hazardous to your health
By: reborn on Sun, 24 May 2009 12:27
|
|
|
Re: Tiberian is hazardous to your health
|
|
|
Re: Tiberian is hazardous to your health
By: reborn on Sun, 24 May 2009 12:40
|
|
|
Re: Tiberian is hazardous to your health
|
|
|
Re: Tiberian is hazardous to your health
|
|
|
Re: Tiberian is hazardous to your health
By: Scrin on Sun, 24 May 2009 13:04
|
|
|
Re: Tiberian is hazardous to your health
By: Omar007 on Sun, 24 May 2009 13:47
|
|
|
Re: Tiberian is hazardous to your health
|
|
|
Re: Tiberian is hazardous to your health
By: ErroR on Mon, 25 May 2009 02:54
|
|
|
Re: Tiberian is hazardous to your health
By: reborn on Mon, 25 May 2009 08:39
|
|
|
Re: Tiberian is hazardous to your health
By: LR01 on Mon, 25 May 2009 09:51
|
|
|
Re: Tiberian is hazardous to your health
By: reborn on Mon, 25 May 2009 12:40
|
|
|
Re: Tiberian is hazardous to your health
|
|
|
Re: Tiberian is hazardous to your health
By: reborn on Mon, 25 May 2009 14:48
|
|
|
Re: Tiberian is hazardous to your health
By: Gohax on Mon, 25 May 2009 17:13
|
|
|
Re: Tiberian is hazardous to your health
By: reborn on Mon, 25 May 2009 22:06
|
|
|
Re: Tiberian is hazardous to your health
|
|
|
Re: Tiberian is hazardous to your health
By: Omar007 on Tue, 26 May 2009 10:02
|
|
|
Re: Tiberian is hazardous to your health
By: Gohax on Tue, 26 May 2009 11:20
|
|
|
Re: Tiberian is hazardous to your health
|
|
|
Re: Tiberian is hazardous to your health
By: ErroR on Tue, 26 May 2009 09:53
|
|
|
Re: Tiberian is hazardous to your health
|
|
|
Re: Tiberian is hazardous to your health
By: reborn on Tue, 26 May 2009 13:32
|
|
|
Re: Tiberian is hazardous to your health
By: reborn on Thu, 28 May 2009 02:21
|
|
|
Re: Tiberian is hazardous to your health
|
|
|
Re: Tiberian is hazardous to your health
By: Scrin on Fri, 29 May 2009 06:58
|
|
|
Re: Tiberian is hazardous to your health
|
|
|
Re: Tiberian is hazardous to your health
By: reborn on Sat, 06 June 2009 11:31
|
|
|
Re: Tiberian is hazardous to your health
|
Goto Forum:
Current Time: Wed Dec 18 14:19:56 MST 2024
Total time taken to generate the page: 0.01186 seconds
|