• 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.

[Help] Change the color around items

Joined
Sep 3, 2013
Messages
903
Reaction score
227
Hello I would like to change the color or the turn of the items I find in the sources and I did not find.



Change the color blue
 
Last edited by a moderator:
Joined
Aug 14, 2009
Messages
2,304
Reaction score
1,189
src\EclipseStudio\Sources\ObjectsCode\Gameplay\obj_DroppedItem.cpp:
Code:
void obj_DroppedItem::SetHighlight( bool highlight )
{
	m_FillGBufferTarget = highlight ? rsFillGBufferAfterEffects : rsFillGBuffer;
}

EDIT:
to be more precise:
Code:
void obj_DroppedItem::AppendRenderables( RenderArray ( & render_arrays )[ rsCount ], const r3dCamera& Cam )
{
	MeshGameObject::AppendRenderables( render_arrays, Cam );

	if( GetHighlight() )
	{
[I][B]		MeshObjDeferredHighlightRenderable rend;

		rend.Init( MeshGameObject::GetObjectLodMesh(), this );
		rend.SortValue = 0;
		
		render_arrays[ rsFillGBufferEffects ].PushBack( rend );[/B][/I]
	}
}
 
Upvote 0
Junior Spellweaver
Joined
Oct 11, 2013
Messages
139
Reaction score
25
Ok, go into WarZ.sln.

SetFillGBufferConstantPixelShader( r3dColor::blue, 1.0f, normal, 0.0f, 0.0f, r_highlight_glow->GetFloat(), 0.f );


Mesh->DrawMeshSimple( 0 );


D3DPERF_EndEvent();
}

Change blue to the color u want. But I am not sure what the color choices are, but I can confirm that Red, Yellow, and Green work fine.

When ur done compile in final and release build, then compile WarZ_Server.sln in debug.

Hope this helps
 
Upvote 0
Joined
Aug 14, 2009
Messages
2,304
Reaction score
1,189
Possible values:

src\Eternity\Source\r3dColor.cpp:
Code:
	const r3dColor	r3dColor::yellow(255,255,0);
	const r3dColor	r3dColor::black(0, 0, 0);
	const r3dColor	r3dColor::grey(80,80,80);
	const r3dColor	r3dColor::white(255, 255, 255);
	const r3dColor	r3dColor::red(255, 0, 0);
	const r3dColor	r3dColor::green(0, 255, 0);
	const r3dColor	r3dColor::blue(0, 0, 255);
 
Upvote 0
Joined
Oct 22, 2013
Messages
421
Reaction score
176
yep its not the same bit of code but if you check for ConstantPixelShader you will find a bit of code that is a bit like the code posted on here then just change that
 
Upvote 0
Banned
Banned
Joined
Sep 1, 2014
Messages
27
Reaction score
5
SetFillGBufferConstantPixelShader( highlightColor, 1.0f, normal, 0.0f, 0.0f, r_highlight_glow->GetFloat(), 0.f );

This is what i have. Do i need to change Highlightcolor to (r3dColor::blue) ?



I know it is probably a dumb question to you guys but I do not have the experience you guys have.
 
Upvote 0