Freeze Nade
Posted: Wed Jun 17, 2009 5:46 pm
Working on my mod, I ran into a problem: the alien side was cloned from Halo. Plasma rifles, nades, left and right....
So I started de-Haloizing. When I came to the Plasma Grenade, I decided to go for something mildly unconventional. A few ideas went down the bin until I thought of a CryoCharge.
Upon explosion, it releases waves of supercooled gas that freeze any nearby units to an icicle. Part ODF, part LUA.
Now, in order to do this, I'll use LUA to grab the matrices of the dead bodies in the gas cloud and teleport an animated, reskinned prop to their location, which will die after a certain amount of time. Here's some code:
Now, as you can see, I use "CreateEntity" to create the animated prop, all ready in my world folders. Then I set it's matrix as that of the dead body...or something or other. Now, this code is all based on the assumption here:
CreateEntity("frozen_rifleman", frozen_spawn, "riflemanfreeze")
Ther first is the ODF, the second the path point, the third, I assume, is the thing's name in ZE, or variable, or whatever. Is it?
So I started de-Haloizing. When I came to the Plasma Grenade, I decided to go for something mildly unconventional. A few ideas went down the bin until I thought of a CryoCharge.
Upon explosion, it releases waves of supercooled gas that freeze any nearby units to an icicle. Part ODF, part LUA.
Now, in order to do this, I'll use LUA to grab the matrices of the dead bodies in the gas cloud and teleport an animated, reskinned prop to their location, which will die after a certain amount of time. Here's some code:
Hidden/Spoiler:
CreateEntity("frozen_rifleman", frozen_spawn, "riflemanfreeze")
Ther first is the ODF, the second the path point, the third, I assume, is the thing's name in ZE, or variable, or whatever. Is it?