• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

Effect Spark Shot

Status
Not open for further replies.
I'm retired, I'm already
Banned
Joined
Oct 3, 2011
Messages
832
Reaction score
155
This is a method so that I shoot them when they touch a wall, they will release sparks as they usually happen in real life when taking a weapon and seeing how these sparks are caused, in short, let's get to the point.

First of all we will do it in the switch method, follow me...

Open "stdafx.h" folder Gunz in your source y paste these

Code:
#define _SPARKBULLET 1
add a // to disable, example //#define _YOURCODE

Open "ZEffectManager.cpp" and search "void ZEffectManager::AddBulletMark" and remplace all these line...

Code:
#ifdef _SPARKBULLET
void ZEffectManager::AddBulletMark(rvector& Target, rvector& TargetNormal)
{
	if(g_nEffectLevel > Z_VIDEO_EFFECT_NORMAL) return; // By Jorklenis2
	if (Z_VIDEO_BULLET_MARKS) return;

	m_BulletMarkList.Add(Target+TargetNormal,TargetNormal);
	AddLightFragment(Target + TargetNormal, TargetNormal);

	ZEffect* pNew = NULL;
	pNew = new ZEffectSlash(m_pBulletOnWallEffect[rand()%BULLETONWALL_COUNT],Target,TargetNormal);
	((ZEffectSlash*)pNew)->SetAlignType(1);
	Add(pNew);
}
#else
void ZEffectManager::AddBulletMark(rvector& Target, rvector& TargetNormal)
{
	if (g_nEffectLevel > Z_VIDEO_EFFECT_NORMAL) return; // By Jorklenis2
	if (Z_VIDEO_BULLET_MARKS) return;

	m_BulletMarkList.Add(Target + TargetNormal, TargetNormal);

	ZEffect* pNew = NULL;
	pNew = new ZEffectSlash(m_pBulletOnWallEffect[rand() % BULLETONWALL_COUNT], Target, TargetNormal);
	((ZEffectSlash*)pNew)->SetAlignType(1);
	Add(pNew);
}
#endif

compile and then test what those sparks look like, remember that there you have the option to activate or deactivate it in case you don't like it or some of its users, enjoy it.

Code:
Credits: [B]Jorklenis2[/B] (Me)
:8:
 
Newbie Spellweaver
Joined
Jan 18, 2021
Messages
6
Reaction score
0
Hello jorklenis2:
- Your code was not released because of the following errors.
'Z_VIDEO_BULLET_MARKS' : undeclared identifier
 
Experienced Elementalist
Joined
Oct 14, 2015
Messages
293
Reaction score
86
Hello jorklenis2:
- Your code was not released because of the following errors.
'Z_VIDEO_BULLET_MARKS' : undeclared identifier

Possibly your source does not have this function, just use the comment. //
 
I'm retired, I'm already
Banned
Joined
Oct 3, 2011
Messages
832
Reaction score
155
Hello jorklenis2:
- Your code was not released because of the following errors.
'Z_VIDEO_BULLET_MARKS' : undeclared identifier

change these if (Z_VIDEO_BULLET_MARKS) return; to //if (Z_VIDEO_BULLET_MARKS) return;
 
Newbie Spellweaver
Joined
Nov 25, 2016
Messages
69
Reaction score
0
good, I have implemented your code in a national source and the effect does not come out.
 
Status
Not open for further replies.
Back
Top