[FIXED 075A] actor spray rotation

Post any Bug Reports here
Post Reply
User avatar
Juutis
Posts: 1511
Joined: Thu Jan 12, 2006 12:46 pm
Location: Finland

[FIXED 075A] actor spray rotation

Post by Juutis »

After having some trial-and-error- testing with predefined actor spray effects I found out that baserotation needs to be in radians there. The manual says it's degrees.
Pain is only psychological.
User avatar
steven8
Posts: 1487
Joined: Wed Aug 24, 2005 9:08 am
Location: Barberton, OH

Post by steven8 »

I looked at the online help and didn't find this. What is the actor spray rotation used for?
User avatar
Juutis
Posts: 1511
Joined: Thu Jan 12, 2006 12:46 pm
Location: Finland

Post by Juutis »

In the "Predefined effects" section:
Actor Spray

This is defined by type = actorspray. It is similar to the spray effect except that it uses actors rather than textured polys as its particles. The section definition would look like this:

basename - base name of sequence of actors to use as particles

numberactors - number of actors in sequence

style - style of using actors

alpha - initial alpha value of actors

alpharate - amount per second to decrease actor alpha

baserotation - initial rotation of actors

...
... and later:
The sequence of actors used is similar to the bitmaps in the FlipBook. If you have 3 actors in the sequence then they must be named name0.act, name1.act and name2.act. The basename used would be name. The style can be 0, 1 or 2. A style of 0 uses the actors in increasing order (starting at 0 and going up) and wraps around to 0 at the end. A style of 1 starts in increasing order and switches to decreasing at the end, then increasing again at the beginning. A style of 2 uses them in random order. The baserotation is the initial rotation assigned to all the actors when they are created in the spray. It is in degrees. If minrotationspeed and maxrotationspeed are not zero in all axis then a speed will be randomly chosen for each axis in this range. The actor will rotate at that speed during its life. The speed is in degrees per second. An example of an actorspray effect is as follows. It has 8 actors named con0.act to con7.act. Note that if the actor spray is attached to an actor via a Predefined Explosion, angles is the number of degrees in each direction from the direction the actor is facing.
Pain is only psychological.
User avatar
steven8
Posts: 1487
Joined: Wed Aug 24, 2005 9:08 am
Location: Barberton, OH

Post by steven8 »

Okey-Doke. For exploding geometry. Thank you.
User avatar
steven8
Posts: 1487
Joined: Wed Aug 24, 2005 9:08 am
Location: Barberton, OH

Post by steven8 »

Now I see it. It's in the ActorSpout entity. I'll get there, guys. it's gonna take a little time.
User avatar
Juutis
Posts: 1511
Joined: Thu Jan 12, 2006 12:46 pm
Location: Finland

Post by Juutis »

Just to make this clear... I was talking about predefined effects, which are defined in install/effect.ini file and can be used in predefined explosions, attached to projectiles etc.
Pain is only psychological.
User avatar
steven8
Posts: 1487
Joined: Wed Aug 24, 2005 9:08 am
Location: Barberton, OH

Post by steven8 »

Okay. I have never used those. I will find a way to fit them into my Dungeon demo.
User avatar
QuestOfDreams
Site Admin
Posts: 1520
Joined: Sun Jul 03, 2005 11:12 pm
Location: Austria
Contact:

Post by QuestOfDreams »

BaseRotation was indeed treated as radians, both in the actorsprays defined in the effect.ini and in the ActorSpout entities. Changed it so the code converts from degrees to radians now.
GD1
Posts: 413
Joined: Tue Jul 05, 2005 2:33 pm

Post by GD1 »

steven8 wrote:Okay. I have never used those. I will find a way to fit them into my Dungeon demo.
I really recomend that you do. this is where the real graphical golden eggs of RF lie. In the past i've used them to achieve really nice smoke effects, 3d muzzle flashes, and even a convincingly realistic wake for a boat.
Check out my band
Tougher Than Fort Knox
Image
User avatar
steven8
Posts: 1487
Joined: Wed Aug 24, 2005 9:08 am
Location: Barberton, OH

Post by steven8 »

Could I use this to make it where if you shot a ceiling, chunks would fall down? I would use a model that set off a trigger and triggered the actorspout. Would that work?

I would like to use this for the character as like an escape route. You know, a ladder through a hole is blocked by stuff, you have to shoot it to clear the way.
Steve Dilworth - Resisting change since 1965!
User avatar
Juutis
Posts: 1511
Joined: Thu Jan 12, 2006 12:46 pm
Location: Finland

Post by Juutis »

Could I use this to make it where if you shot a ceiling, chunks would fall down?
Yes, exactly!
Pain is only psychological.
User avatar
steven8
Posts: 1487
Joined: Wed Aug 24, 2005 9:08 am
Location: Barberton, OH

Post by steven8 »

And I know exactly where I am going to use it!!
Steve Dilworth - Resisting change since 1965!
Post Reply