Jump to content

Turn off Character Spawn Effects


Recommended Posts

 

You can gain performance by turning off the spawn effects of monsters spawned in groups.

Before:

spacer.png

After:

spacer.png

 

/**************************************************Game********************************************/
//Game/char.cpp

//X2 Search:

m_afAffectFlag.Set(AFF_SPAWN);

//And Replace:

// m_afAffectFlag.Set(AFF_SPAWN);

/**************************************************Client*******************************************/

//UserInterFace/InstanceBase.cpp

//Search:

		if (IsAffect(AFFECT_SPAWN))
			__AttachEffect(EFFECT_SPAWN_APPEAR);

//Replace:

		/*if (IsAffect(AFFECT_SPAWN))
			__AttachEffect(EFFECT_SPAWN_APPEAR);*/

// UserInterFace/InstanceBaseBattle.cpp

//Search:

	if (IsAffect(AFFECT_SPAWN))
		__AttachEffect(EFFECT_SPAWN_DISAPPEAR);

//Replace:

	/*if (IsAffect(AFFECT_SPAWN))
		__AttachEffect(EFFECT_SPAWN_DISAPPEAR);*/

 

Edited by Metin2 Dev
Core X - External 2 Internal
  • Metin2 Dev 3
  • Think 3
  • Lmao 1
  • Love 1
  • Love 1

Metin2 services system sales and more Join my group

Link to comment
Share on other sites

  • Forum Moderator

Hello,

Thank you for your share, this is however a bad practice for those reasons:

  1. You can check of the server the function "SpawnMob" and "SpawnMobRange" and set the "bSpawnMotion" to false. Removing an effect that has a purpose (it means the monster is resurrected / summoned) is not considered correct because it will just make the whole function useless as well; so you can also consider removing those arguments as well and change the rest of the code.
  2. The effect can just be turned off manually on the game using any "Graphic On Off" system, even the light version that got released here should do the trick if I remember correctly. However, there isn't yet a good version of it released, but Mali has shown good progress toward the complete and working one.
  3. Just not attaching the effect on the server, or not displaying it in the client would have had the same effect, but those two solutions are also not recommended.

Once again, thank you for sharing with us and I hope those little tricks will help you! 😄

 

  • kekw 1

Gurgarath
coming soon

Link to comment
Share on other sites

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / 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.