Informations
Jump to content

Lorem Ipsum...

Click to Dismiss this Notification
Ładowanie danych...

Recommended Posts

In game development, managing character visibility is crucial for gameplay dynamics, especially when introducing abilities like invisibility. This guide outlines modifications to enhance the invisibility and camouflage effects for characters in your game.

Updating Visibility Logic

Step 1: Modify the Invisibility Check

Begin by navigating to the InstanceBase.cpp file. Look for the method responsible for determining if a character is invisible:

 
This is the hidden content, please

You will need to enhance this method to include another condition. Update the method as shown below:

 
This is the hidden content, please

Step 2: Update Rendering Logic

Next, locate the rendering function within the same file, InstanceBase.cpp. Search for the following:

 
void CInstanceBase::Render()
{
    

Within this function, right after the line m_GraphicThingInstance.Render();, insert the following code to manage the rendering of affected characters:

 
This is the hidden content, please

Step 3: Adjust Affects in InstanceBaseEffect.cpp

Now, switch to InstanceBaseEffect.cpp, where you will refine how affects are managed. Look for the method:


    
This is the hidden content, please

You’ll want to revise it to incorporate the new behavior for hiding effects:

 
This is the hidden content, please

 

By implementing these changes, you ensure that characters affected by the new camouflage status (AFFECT_EUNHYEONG) and invisibility are managed correctly in terms of visibility and effects during gameplay. This modification enhances the player experience, making stealth features more effective.

Link to comment
Share on other sites


Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

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.

spacer.png

Disable AdBlock
The popup will be closed in 5 seconds...