Пример #1
0
void fxGetFallingStuffProps(CFastList<FX_PROP> *pList)
{
    FX_PROP fxProp;
    float fVec[3];
    fVec[0] = 0.0f;
    fVec[1] = 1.0f;
    fVec[2] = 0.0f;

    // Add the base props

    AddBaseProps(pList);

    // Add all the props to the list

    fxProp.Combo("Interpolate", "0,Yes,No");
    pList->AddTail(fxProp);

    fxProp.Path("Sprite", "spr|...");
    pList->AddTail(fxProp);

    fxProp.Int("StuffPerEmission", 5);
    pList->AddTail(fxProp);

    fxProp.Float("EmissionInterval", 0.01f);
    pList->AddTail(fxProp);

    fxProp.Float("StuffLifespan", 2.0f);
    pList->AddTail(fxProp);

    fxProp.Float("Radius", 10.0f);
    pList->AddTail(fxProp);

    fxProp.Vector("PlaneDir", fVec);
    pList->AddTail(fxProp);

    fxProp.Float("Velocity", 10.0f);
    pList->AddTail(fxProp);

    fxProp.Float("Stretch", 10.0f);
    pList->AddTail(fxProp);

    fxProp.Path("ImpactSprite", "spr|...");
    pList->AddTail(fxProp);

    fxProp.Float("ImpactLifespan", 1.0f);
    pList->AddTail(fxProp);

    fxProp.Float("ImpactScale1", 1.0f);
    pList->AddTail(fxProp);

    fxProp.Float("ImpactScale2", 1.0f);
    pList->AddTail(fxProp);

    fxProp.Int("ImpactCreate", 20);
    pList->AddTail(fxProp);

    fxProp.Combo("ImpactPerturb", "0,None,Sine,Pendulum");
    pList->AddTail(fxProp);
}
Пример #2
0
void fxGetDynaLightProps(CFastList<FX_PROP> *pList)
{
	FX_PROP fxProp;

	// Add the base props

	AddBaseProps(pList);

	fxProp.Int("Flicker", 0);
	pList->AddTail(fxProp);

	fxProp.Combo( "ForceLightWorld", "0, No, Yes" );
	pList->AddTail( fxProp );
}
Пример #3
0
void fxGetPolyTubeProps(CFastList<FX_PROP> *pList)
{
	FX_PROP fxProp;
	
	// Add the base props

	AddBaseProps(pList);

	// Add the class props

	fxProp.Path("Texture", "dtx|...");
	pList->AddTail(fxProp);

	fxProp.Float("TrailWidth", 20.0f);
	pList->AddTail(fxProp);

	fxProp.Combo("WidthStyle", "0,Constant,SmallToBig,SmallToSmall,BigToSmall" );
	pList->AddTail( fxProp );
	
	fxProp.Int("TrailLen", 50);
	pList->AddTail(fxProp);

	fxProp.Float("SectionLifespan", 1.0f);
	pList->AddTail(fxProp);

	fxProp.Float("UAdd", 0.0f);
	pList->AddTail(fxProp);

	fxProp.Float("SectionInterval", 0.1f);
	pList->AddTail(fxProp);

	fxProp.Combo("BlendMode", "0,None,Add,Saturate,ModSrcAlpha,ModSrcColor,ModDstColor,MulSrcColDstCol,MulSrcAlphaOne,MulSrcAlpha,MulSrcColOne,MulDstColZero" );
	pList->AddTail( fxProp );

	fxProp.Combo( "AlphaTest", "0,None,Less,LessOrEqual,Greater,GreaterOrEqual,Equal,NotEqual" );
	pList->AddTail( fxProp );

	fxProp.Combo( "ColorOp", "0,NoTexture,Modulate,Additive,NoColor" );
	pList->AddTail( fxProp );

	fxProp.Combo( "FillMode", "1,WireFrame,Fill" );
	pList->AddTail( fxProp );

	fxProp.Combo( "Allignment", "0,Camera,Up,Right,Forward" );
	pList->AddTail( fxProp );
}
Пример #4
0
void AddBaseProps(CFastList<FX_PROP> *pList)
{
	FX_PROP fxProp;
	float fVec[3];
	fVec[0] = 0.0f;
	fVec[1] = 0.0f;
	fVec[2] = 0.0f;

	fxProp.Combo( FXPROP_UPDATEPOS,"0,Fixed,Follow,PlayerView,NodeAttach,SocketAttach,PV_NodeAttach,PV_SocketAttach");
	pList->AddTail(fxProp);

	fxProp.String( FXPROP_ATTACHNAME, "" );
	pList->AddTail( fxProp );

	fxProp.Vector( FXPROP_OFFSET, fVec);
	pList->AddTail(fxProp);

	fxProp.Vector( FXPROP_ROTATEADD, fVec);
	pList->AddTail(fxProp);

	fxProp.Combo( FXPROP_DISABLEATDIST, "1,No,Yes");
	pList->AddTail(fxProp);

	fxProp.Int( FXPROP_MENULAYER, 0 );
	pList->AddTail(fxProp);

	fxProp.Float( FXPROP_MAXSTARTOFFSET, 0.0f);
	pList->AddTail(fxProp);

	fxProp.Combo( FXPROP_RANDOMSTARTOFFSET, "1,No,Yes");
	pList->AddTail(fxProp);

	fxProp.Float( FXPROP_STARTOFFSETINTERVAL, 0.0f);
	pList->AddTail(fxProp);

	fxProp.Combo( FXPROP_SMOOTHSHUTDOWN, "1,No,Yes");
	pList->AddTail(fxProp);

	//the detail settings properties. Note that this must match the table in clientfxmgr.cpp
	fxProp.Combo( FXPROP_DETAILLEVEL, "0,All,High,Medium,Low,Medium+High,Low+Medium,Low+High");
	pList->AddTail(fxProp);

	fxProp.Combo( FXPROP_ISGORE, "0,No,Yes");
	pList->AddTail(fxProp);
}
Пример #5
0
void fxGetLightningProps(CFastList<FX_PROP> *pList)
{
	FX_PROP fxProp;
	
	// Add the base props

	AddBaseProps(pList);
	

	fxProp.Path("Texture", "dtx|...");
	pList->AddTail(fxProp);

	fxProp.Combo("BlendMode", "0,None,Add,Saturate,ModSrcAlpha,ModSrcColor,ModDstColor,MulSrcColDstCol,MulSrcAlphaOne,MulSrcAlpha,MulSrcColOne,MulDstColZero" );
	pList->AddTail( fxProp );

	fxProp.Combo( "AlphaTest", "0,None,Less,LessOrEqual,Greater,GreaterOrEqual,Equal,NotEqual" );
	pList->AddTail( fxProp );

	fxProp.Combo( "ColorOp", "0,NoTexture,Modulate,Additive,NoColor" );
	pList->AddTail( fxProp );

	fxProp.Combo( "FillMode", "1,WireFrame,Fill" );
	pList->AddTail( fxProp );

	fxProp.Combo( "Allignment", "0,Camera,Up,Right,Forward" );
	pList->AddTail( fxProp );

	fxProp.String( "NodeAttractors", "" );
	pList->AddTail( fxProp );

	fxProp.String( "SocketAttractors", "" );
	pList->AddTail( fxProp );

	fxProp.Float( "OmniDirectionalRadius", 0.0f );
	pList->AddTail( fxProp );

	fxProp.Int( "MinNumBolts", 1 );
	pList->AddTail( fxProp );

	fxProp.Int( "MaxNumBolts", 5 );
	pList->AddTail( fxProp );

	fxProp.Int( "MinSegmentsPerBolt", 10 );
	pList->AddTail( fxProp );

	fxProp.Int( "MaxSegmentsPerBolt", 50 );
	pList->AddTail( fxProp );

	fxProp.Float( "MinBoltWidth", 0.5f );
	pList->AddTail(fxProp);

	fxProp.Float( "MaxBoltWidth", 3.0f );
	pList->AddTail( fxProp );

	fxProp.Float( "MinPerturb", 0.0f );
	pList->AddTail( fxProp );

	fxProp.Float( "MaxPerturb", 35.0f );
	pList->AddTail( fxProp );

	fxProp.Float( "MinLifetime", 0.1f );
	pList->AddTail( fxProp );

	fxProp.Float( "MaxLifetime", 3.0f );
	pList->AddTail( fxProp );

	fxProp.Float( "MinDelay", 0.0f );
	pList->AddTail( fxProp );

	fxProp.Float( "MaxDelay", 0.1f );
	pList->AddTail( fxProp );

	fxProp.Float( "Pulse", 5.0f );
	pList->AddTail( fxProp );
}