emit sfx bug

emit sfx bug

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

Post Reply
User avatar
Caydr
Omnidouche
Posts: 7179
Joined: 16 Oct 2004, 19:40

emit sfx bug

Post by Caydr »

This position:

pos=0, 0, -1.5;

Should logically be directly behind a unit, regardless of the direction it's turning. Instead, it's just that much in that direction... so if you have a unit with a flame that's supposed to go in X direction, say, directly in front of it, it has to be facing that direction for the effect to work... Am I being clear? I'm really tired.
User avatar
jcnossen
Former Engine Dev
Posts: 2440
Joined: 05 Jun 2005, 19:13

Post by jcnossen »

Yeha added some new "dir" tag for the explosion generators (as well as a new generic particle with more properties), I think he has some explaining to do...
User avatar
rattle
Damned Developer
Posts: 8278
Joined: 01 Jun 2006, 13:15

Post by rattle »

Noticed that as well, try using r-1.5 instead.
User avatar
Argh
Posts: 10920
Joined: 21 Feb 2005, 03:38

Post by Argh »

I strongly suspect that "dir" will use the same system as for weapon arcs. But I haven't tested it yet.
User avatar
Caydr
Omnidouche
Posts: 7179
Joined: 16 Oct 2004, 19:40

Post by Caydr »

Yeah that's what it uses. Just, it puts the effect that far in the absolute direction, not relative to the unit.
User avatar
rattle
Damned Developer
Posts: 8278
Joined: 01 Jun 2006, 13:15

Post by rattle »

Try "dir = dir;"...
User avatar
Caydr
Omnidouche
Posts: 7179
Joined: 16 Oct 2004, 19:40

Post by Caydr »

:shock: why? That's completely inconsistent with any spring system.
User avatar
rattle
Damned Developer
Posts: 8278
Joined: 01 Jun 2006, 13:15

Post by rattle »

I have no idea what dir does at the moment, but on this other thing it's "dir=dir;" which makes it keep orientation.
User avatar
Argh
Posts: 10920
Joined: 21 Feb 2005, 03:38

Post by Argh »

Ehhhh? Has anybody tested this yet? Screens?

I'll have to go read the code here in a bit, I guess. Darn Work :P
User avatar
rattle
Damned Developer
Posts: 8278
Joined: 01 Jun 2006, 13:15

Post by rattle »

The only thing which used dir (and needed dir=dir;) was CBitmapMuzzleFlame (or I don't know the others :P). Screens in the feature forum's emit-sfx flare thread.
User avatar
jcnossen
Former Engine Dev
Posts: 2440
Joined: 05 Jun 2005, 19:13

Post by jcnossen »

Just means that the "dir" property takes the value of the direction referenced to by the "dir" keyword. It makes sense, in a slightly confusing way. I don't exactly know Yeha did, but I guess you can also set it to some other vector other than dir.
Or use speed=dir;
Yeha
Posts: 96
Joined: 13 Aug 2004, 19:12

Post by Yeha »

Post Reply

Return to “Engine”