Effect Spark Shot

Results 1 to 5 of 5
  1. #1
    Infraction Banned jorklenis2 is offline
    MemberRank
    Oct 2011 Join Date
    PanamáLocation
    878Posts

    cool Effect Spark Shot

    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: Jorklenis2 (Me)


  2. #2
    Apprentice kurohi is offline
    MemberRank
    Jan 2021 Join Date
    7Posts

    Re: Effect Spark Shot

    Hello jorklenis2:
    - Your code was not released because of the following errors.
    'Z_VIDEO_BULLET_MARKS' : undeclared identifier

  3. #3
    Orby? Orby ? @-@ Orby is offline
    MemberRank
    Oct 2015 Join Date
    AstraLocation
    277Posts

    Re: Effect Spark Shot

    Quote Originally Posted by kurohi View Post
    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. //

  4. #4
    Infraction Banned jorklenis2 is offline
    MemberRank
    Oct 2011 Join Date
    PanamáLocation
    878Posts

    Re: Effect Spark Shot

    Quote Originally Posted by kurohi View Post
    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;

  5. #5
    Member Gunzlatinov3 is offline
    MemberRank
    Nov 2016 Join Date
    PeruLocation
    74Posts

    Re: Effect Spark Shot

    good, I have implemented your code in a national source and the effect does not come out.



Advertisement