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 serversDon'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
-
Our picks
Немножечко в отчаянии.
Хочу поменять цвет зоны заражения, в 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