What the hell?

What the hell?

Discuss game development here, from a distinct game project to an accessible third-party mutator, down to the interaction and design of individual units if you like.

Moderator: Moderators

Post Reply
User avatar
Snipawolf
Posts: 4357
Joined: 12 Dec 2005, 01:49

What the hell?

Post by Snipawolf »

I demand an explanation for this BS. If I change one simple variable, it makes my effect NONEXISTANT. If I change emitvector to dir, it then screws the FX up.


FX here

Code: Select all

[steam]
{
[delayspawner_steam]
	{
		class=CExpGenSpawner;
		[properties]
		{
		delay=0 i1;
		explosionGenerator=custom:steam_actual_effect;
		}
	water=1;
	air=1;
	ground=1;
	count=66;
	}
}

[steam_actual_effect]
{
[particlesystem_sparks]
	{
	class=CSimpleParticleSystem;
		[properties]
		{
		sizeGrowth=0;
		sizeMod=1.0;
		pos=0, 0, 0;
		emitVector=0, 1, 0; //change to dir to fuck it up
		gravity=0, 0, 0;
		colorMap=1 1 1 .5    .5 .5 .5 .25    0 0 0 0;
		Texture=dust2;
		airdrag=.55;
		particleLife=20;
		particleLifeSpread=20;
		numParticles=1;
		particleSpeed=5;
		particleSpeedSpread=8;
		particleSize=4;
		particleSizeSpread=2;
		emitRot=10;
		emitRotSpread=0;
		directional=1;
		}
	air=1;
	water=1;
	ground=1;
	count=1;
	}
}
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Post by KDR_11k »

My guess is that whatever you're using isn't supplying a dir vector. Either the delayer or you're using a beamlaser.
User avatar
Snipawolf
Posts: 4357
Joined: 12 Dec 2005, 01:49

Post by Snipawolf »

So, going through the delayer causes the dir angle to be lost? That sucks horribly, and should be changed.
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Post by KDR_11k »

Maybe the delayer needs a dir=dir tag to keep the dir?
User avatar
Snipawolf
Posts: 4357
Joined: 12 Dec 2005, 01:49

Post by Snipawolf »

I'll try, maybe it can accept that.

Edit: Works now, awesome :twisted:

Added the dir tag to both of them.

Dir=dir; for the delayer

emitvector=dir; for the actual effect

Thanks KDR :-)
Post Reply

Return to “Game Development”