Raised This Month: $ Target: $400
 0% 

Help with object glow


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Artemus
Senior Member
Join Date: Jul 2005
Location: OK
Old 03-13-2006 , 21:59   Help with object glow
Reply With Quote #1

Hey I want this enitys to glow "func_door_rotating" and "func_pushable" in A MAP.
Code:
/* Plugin generated by AMXX-Studio */ #include <amxmodx> #include <amxmisc> #include <fun> #include <engine> #define PLUGIN "ObejectMoverObjectGlow" #define VERSION "1.0" #define AUTHOR "Artemus" public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR)         } public LightMovable()     {         new ent;     while(ent =  find_ent_by_class(ent,"func_door_rotating", "func_pushable"))       {         set_ent_rendering(kRenderFxGlowShell, 255, 0, 255, kRenderNormal, 25)             } }
Might some one help me to make this work.
__________________
EURO
Artemus is offline
Send a message via ICQ to Artemus Send a message via AIM to Artemus Send a message via Yahoo to Artemus
Artemus
Senior Member
Join Date: Jul 2005
Location: OK
Old 03-13-2006 , 23:23  
Reply With Quote #2

I'm still in intro to programming class so that is far as I can get now
Code:
#include <amxmodx> #include <amxmisc> #include <fun> #include <engine> public plugin_init() {     register_plugin("ObejectMoverObjectGlow", "1.0", "ArtemusOD")     register_cvar("sv_OMOGlow","1")     } public LightMovable()     {         new ent[32];     while(ent =  find_ent_by_class(ent,"func_door_rotating", "func_pushable"))       {         set_entity_visibility(kRenderFxGlowShell, 255, 0, 255, kRenderNormal, 25);             } }
__________________
EURO
Artemus is offline
Send a message via ICQ to Artemus Send a message via AIM to Artemus Send a message via Yahoo to Artemus
VEN
Veteran Member
Join Date: Jan 2005
Old 03-14-2006 , 03:28  
Reply With Quote #3

Put only one classname to the find_ent_by_class
VEN is offline
Artemus
Senior Member
Join Date: Jul 2005
Location: OK
Old 03-14-2006 , 16:52   Next what do i do
Reply With Quote #4

Code:
#include <amxmodx> #include <amxmisc> #include <fun> #include <engine> public plugin_init() {     register_plugin("ObejectMoverObjectGlow", "1.0", "ArtemusOD")     register_cvar("lightmovable","1")     register_srvcmd("removedoors","LightMovable");     if(get_cvar_num("lightmovable")) {         set_task(1.0,"LightMovable");     } }     public LightMovable()     {         new ent = -1     while ( (ent = find_ent_by_class(ent, "func_pushable"))   != 0)     {         set_entity_visibility(ent, kRenderFxGlowShell, 255, 0, 255, kRenderNormal, 25);             } }

I need help on this error

Error: Number of arguments does not match definition on line 28
__________________
EURO
Artemus is offline
Send a message via ICQ to Artemus Send a message via AIM to Artemus Send a message via Yahoo to Artemus
Artemus
Senior Member
Join Date: Jul 2005
Location: OK
Old 03-14-2006 , 17:47   HELP
Reply With Quote #5

I got this compiled and it makes func_pushable objects and rotating doors invisible how do u make them glow
if i add this
set_entity_visibility(kRenderFxGlowShell, 255, 0, 255, kRenderNormal, 25); i get error : Number of arguments does not match definition
Code:
#include <amxmodx> #include <amxmisc> #include <fun> #include <engine> public plugin_init() {     register_plugin("ObejectMoverObjectGlow", "1.0", "ArtemusOD")     register_cvar("lightmovable","1")     register_srvcmd("lightmovable","LightMovable");     if(get_cvar_num("lightmovable")) {         set_task(1.0,"LightMovable");     } }     public LightMovable()     {         new ent, ent2;         while (ent = find_ent_by_class(ent, "func_pushable"))       {         set_entity_visibility(ent, kRenderFxGlowShell);             }     while (ent2 = find_ent_by_class(ent2,"func_door_rotating"))       {         set_entity_visibility(ent2, kRenderFxGlowShell);             }     }
__________________
EURO
Artemus is offline
Send a message via ICQ to Artemus Send a message via AIM to Artemus Send a message via Yahoo to Artemus
Artemus
Senior Member
Join Date: Jul 2005
Location: OK
Old 03-14-2006 , 17:50  
Reply With Quote #6

wait how do I set_ent_rendering it doesn't let me only set_entity_visibility
__________________
EURO
Artemus is offline
Send a message via ICQ to Artemus Send a message via AIM to Artemus Send a message via Yahoo to Artemus
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 20:18.


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