Effect Spark Shot

Results 1 to 6 of 6
  1. #1
    Aikatsu! jorklenis2 is offline
    True MemberRank
    Oct 2011 Join Date
    PanamáLocation
    688Posts

    cool Effect Spark Shot

    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)
    You Rock My World


  2. #2
    Registered sharpshot is offline
    MemberRank
    May 2014 Join Date
    11Posts

    Re: Effect Spark Shot

    Thanks for this!

  3. #3
    Feel the wind. Orby is offline
    True MemberRank
    Oct 2015 Join Date
    WorldLocation
    232Posts

    Re: Effect Spark Shot

    Nice job @jorklenis2
    Live as if there is no tomorrow, and do wonders.

  4. #4
    Registered 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

  5. #5
    Feel the wind. Orby is offline
    True MemberRank
    Oct 2015 Join Date
    WorldLocation
    232Posts

    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. //
    Live as if there is no tomorrow, and do wonders.

  6. #6
    Aikatsu! jorklenis2 is offline
    True MemberRank
    Oct 2011 Join Date
    PanamáLocation
    688Posts

    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;
    You Rock My World



Advertisement