PDA

View Full Version : CS 1.X style glowing



P47R!CK
05-28-2005, 12:44 PM
int __stdcall new_DrawModel ( int flags, IClientRenderable *cliententity, ModelInstanceHandle_t instance, int entity_index, const model_t *model, Vector const& origin, QAngle const& angles, int skin, int body, int hitboxset, const matrix3x4_t *modelToWorld, const matrix3x4_t *pLightingOffset )
{
// acquire the base combat character (in my case pCombat ) from ent index

C_LocalTempEntity* pTempEnt = (C_LocalTempEntity*) pCombat->GetBaseAnimating();

pTempEnt->DrawSprite( g_pEntList->GetClientEntity( entity_index ),
model, origin, angles, g_pGlobals->framecount,
g_pEntList->GetClientEntity( entity_index ), entity_index, kRenderWorldGlow, kRenderFxMax,
GetAlpha(dwColor), GetRed(dwColor), GetBlue(dwColor), GetGreen(dwColor), 255.0f );

...
call the org function


this looks like 1.x glowing but it's visible through walls ... no idea why :/

XanTrax
05-28-2005, 12:53 PM
int __stdcall new_DrawModel ( int flags, IClientRenderable *cliententity, ModelInstanceHandle_t instance, int entity_index, const model_t *model, Vector const& origin, QAngle const& angles, int skin, int body, int hitboxset, const matrix3x4_t *modelToWorld, const matrix3x4_t *pLightingOffset )
{
// acquire the base combat character (in my case pCombat ) from ent index

C_LocalTempEntity* pTempEnt = (C_LocalTempEntity*) pCombat->GetBaseAnimating();

pTempEnt->DrawSprite( g_pEntList->GetClientEntity( entity_index ),
model, origin, angles, g_pGlobals->framecount,
g_pEntList->GetClientEntity( entity_index ), entity_index, kRenderWorldGlow, kRenderFxMax,
GetAlpha(dwColor), GetRed(dwColor), GetBlue(dwColor), GetGreen(dwColor), 255.0f );

...
call the org function


this looks like 1.x glowing but it's visible through walls ... no idea why :/


:( :disappoin

Nice work but i just siad to some people today i was gonna try this and you released it eariler today

P47R!CK
05-28-2005, 12:59 PM
:( :disappoin

Nice work but i just siad to some people today i was gonna try this and you released it eariler today
this method is pretty shitty.. maybe you find a better way :)

XanTrax
05-29-2005, 07:12 AM
this method is pretty shitty.. maybe you find a better way :)

Hopefully :D

/me goes back to trying

xen
05-29-2005, 08:27 AM
Hey, nice job, would be nice to see a screenshot though :lick:

Ap0calipz
05-29-2005, 09:02 AM
nice but jeez quite a few parameters

XanTrax
05-29-2005, 09:26 PM
Hey, nice job, would be nice to see a screenshot though :lick:

Its the same as CS 1.6

hence CS 1.x :banana:

xen
05-30-2005, 06:56 AM
Its the same as CS 1.6

hence CS 1.x :banana:

Yes but seeing is believing :ditsy: