Raised This Month: $51 Target: $400
 12% 

Setting glow on an entity when model is smaller than the size of the entity


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Desikac
Senior Member
Join Date: Apr 2010
Location: Serbia
Old 03-23-2012 , 12:19   Setting glow on an entity when model is smaller than the size of the entity
Reply With Quote #1

When I make an entity with a specific size, give it a model that is smaller than the size of the entity and make it glow, only the model will glow. How can I make the whole space that the entity fills glow?


I want to give a color (or glow) to a walkguard block zone:

PHP Code:
public CreateZone(Float:position[3], Float:mins[3], Float:maxs[3], zmcampertime) {
    new 
entity fm_create_entity("info_target")
    
set_pev(entitypev_classname"walkguardzone")
    
fm_entity_set_model(entity"sprites/port1.spr")
    
fm_entity_set_origin(entityposition)

    
set_pev(entitypev_movetypeMOVETYPE_FLY)
    new 
id pev(entityZONEID)
    if (
editor)
    {
        
set_pev(entitypev_solidSOLID_NOT)
    } else
    {
        
set_pev(entitypev_solidsolidtyp[ZONEMODE:id])
    }
    
    
fm_entity_set_size(entityminsmaxs)
    
    
fm_set_entity_visibility(entity1)
    
set_rendering(entitykRenderFxGlowShell25500kRenderTransAdd255//it only makes the model glow
    
set_pev(entityZONEIDzm)
    
set_pev(entityCAMPERTIMEcampertime)
    
    return 
entity


Last edited by Desikac; 03-23-2012 at 12:24.
Desikac is offline
Send a message via MSN to Desikac Send a message via Skype™ to Desikac
faki
Senior Member
Join Date: Jul 2013
Old 06-06-2014 , 16:26   Re: Setting glow on an entity when model is smaller than the size of the entity
Reply With Quote #2

i need too.
faki is offline
Freezo Begin
BANNED
Join Date: Mar 2014
Location: Morocco
Old 06-06-2014 , 18:24   Re: Setting glow on an entity when model is smaller than the size of the entity
Reply With Quote #3

me too xD ! help ?
Freezo Begin is offline
Reply



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 06:56.


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