Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
  • Need help?

    Create a topic in the appropriate section
    Don't write everything in the chat!
  • Take a look at the marketplace

    There you can buy
    everything related to game servers
  • Don't want a ban?

    Please read our rules
    Don't disturb the order!
  • Sell or buy?

    Use services of the guarantor
    We will make your deal safe
  • 0
Sign in to follow this  
ShepardRussian

Цвет дыма SpokyArea

Немножечко в отчаянии.

Хочу поменять цвет зоны заражения, в Workbench'е поменял цвет в .ptc, добавил их в /папкамода/data, в 3_Game добавил скрипт 

modded class ParticleList
{
	static const int CONTAMINATED_AREA_GAS_TINY_HUY		= RegisterParticle("","contaminated_area_gas_around_tiny_huy");
	static const int CONTAMINATED_AREA_GAS_AROUND_HUY	= RegisterParticle("","contaminated_area_gas_around_huy");
	static const int CONTAMINATED_AREA_GAS_BIGASS_HUY	= RegisterParticle("","contaminated_area_gas_bigass_huy");
	static const int CONTAMINATED_AREA_GAS_GROUND_HUY	= RegisterParticle("","contaminated_area_gas_ground_huy");
}

В 4_Game добавил скрипт

modded class SpookyArea
{
    override void InitZoneClient()
    {
        super.InitZoneClient();
        PlaceParticles( GetWorldPosition(), m_Radius, m_InnerRings, m_InnerSpacing, m_OuterRingToggle, m_OuterSpacing, m_OuterRingOffset, ParticleList.CONTAMINATED_AREA_GAS_BIGASS_HUY );
    }
}

В config.cpp, само собой, скрипты прописаны.

		dependencies[] = {"Game","World","Mission"};
		class defs
		{
			class gameScriptModule
			{
				value = "";
				files[] = {"testonemore/scripts/3_Game"};
			};
			class worldScriptModule
			{
				value = "";
				files[] = {"testonemore/scripts/4_World"};
			};
			class missionScriptModule
			{
				value = "";
				files[] = {"testonemore/scripts/5_Mission"};
			};
		};
	};

Серв не крашит, но цвет стандартный 😞 Что я делаю не так и что нужно сделать?)

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Эпопея, день второй.

Нашел в cfgeffectarea ссылки на партиклы. Проставил:

				"ParticleName": "testonemore/data/contaminated_area_gas_bigass_huy"
				},
			"PlayerData": {
				"AroundPartName": "testonemore/data/contaminated_area_gas_around_huy",
				"TinyPartName": "testonemore/data/contaminated_area_gas_around_tiny_huy",
				"PPERequesterType": "PPERequester_ContaminatedAreaTint"

Зоны спавнятся как надо, но они невидимые. При возврате значений на стандартные все работает.

Гуру, помогите!

Share this post


Link to post
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you automaticly agree to our Guidelines and Privacy Policy.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.