Raised This Month: $ Target: $400
 0% 

Light on func_targer model entity


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
DarthMan
Veteran Member
Join Date: Aug 2011
Old 02-26-2017 , 06:26   Re: Light on func_targer model entity
Reply With Quote #6

Quote:
Originally Posted by georgik57 View Post
Not sure if this will help, but here u go:
Code:
#include <amxmodx> #include <fakemeta> //#include <hamsandwich> //#include <D7Debug> public plugin_init() {     register_plugin("D7 Render Entities Map", "0.0.5", "D i 5 7 i n c T")         set_pev(0, pev_rendermode, kRenderTransTexture);     set_pev(0, pev_renderamt, 128.0)         new iIDEnt = -1, iSzLenght;         while ((iIDEnt = engfunc(EngFunc_FindEntityInSphere, iIDEnt, Float:{ 0.0, 0.0, 0.0 }, 9000.0)) != 0)     {         if (!pev_valid(iIDEnt))             continue;                 static szEntInfo[32];         pev(iIDEnt, pev_classname, szEntInfo, charsmax(szEntInfo))                 //ftD7Log(_, _, "[plugin_init] iIDEnt: %d. Class name: ^"%s^".", iIDEnt, szEntInfo)                 pev(iIDEnt, pev_model, szEntInfo, charsmax(szEntInfo))                 //ftD7Log(_, _, "[plugin_init] iIDEnt: %d. Model: ^"%s^".^n", iIDEnt, szEntInfo)                 if (szEntInfo[0] != '*')         {             iSzLenght = strlen(szEntInfo);                         if (iSzLenght < 4)                 continue;                         if (equali(szEntInfo[iSzLenght - 4], ".mdl"))             {                 set_pev(iIDEnt, pev_rendermode, kRenderNormal)                 set_pev(iIDEnt, pev_renderfx, kRenderFxGlowShell)                 set_pev(iIDEnt, pev_rendercolor, Float:{ 255.0, 255.0, 255.0 })                 set_pev(iIDEnt, pev_renderamt, 15.0)             }             else if (equali(szEntInfo[iSzLenght - 4], ".spr"))             {                 set_pev(iIDEnt, pev_renderamt, 191.0)             }         }         else         {             set_pev(iIDEnt, pev_rendermode, kRenderTransTexture);             set_pev(iIDEnt, pev_renderamt, 128.0)         }     } }
It doesn't work fine, should find every info_target entities only and make them brighter.
What it does now is that it shows white colors brighted 100% for a few secs, they dissapear and appear on other places. It should light every single info_target entity constantly and u should see the entity not a white background image. Also i don't want the image color to glow, i want it to be static.

Last edited by DarthMan; 02-26-2017 at 06:36.
DarthMan is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 20:51.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode