Raised This Month: $ Target: $400
 0% 

Really Need Some Help...


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
shine771
Senior Member
Join Date: Jun 2007
Old 07-17-2007 , 07:34   Really Need Some Help...
Reply With Quote #1

I want to create FOG for CS 1.6. Just want to all be dark and foggy. Want to scare the hell out of players XD. Ok know for CS 1.6 - FOG. I searched forum and i found this:
Code:
    weather_ent = engfunc(EngFunc_CreateNamedEntity, engfunc(EngFunc_AllocString, "env_fog"))
    DispatchKeyValue(weather_ent,"density","0.001")
    DispatchKeyValue(weather_ent,"rendercolor","116 137 147")
What exactly i should do with this code. I know thats a n00by question. But i really dont know. I try'd this.
Code:
#include <amxmodx>
#include <amxmisc>
#include <fakemeta>
#include <engine>

#define PLUGIN "Fog"
#define VERSION "1.0"
#define AUTHOR "Sh!nE*"

new weather_ent

public plugin_init() {
    register_plugin(PLUGIN, VERSION, AUTHOR)
    
    set_task(1.0,"start_fog")
}

public start_fog()
{
    weather_ent = engfunc(EngFunc_CreateNamedEntity, engfunc(EngFunc_AllocString, "env_fog"))
    DispatchKeyValue(weather_ent,"density","0.001")
    DispatchKeyValue(weather_ent,"rendercolor","116 137 147")
}
RESULT: NOTHING

I want to make a good fog. Not millions of sprites... It'll LAG my server. I hope you can help. I know for CS - good FOG - Impossible. But i saw that post. And i got a hope...
Thanks.
shine771 is offline
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 07-17-2007 , 08:59   Re: Really Need Some Help...
Reply With Quote #2

You must create fog in plugin_precache() !
And change this
Code:
DispatchKeyValue(weather_ent,"density","0.001")
to
Code:
DispatchKeyValue(weather_ent,"density","0.002")
__________________
Still...lovin' . Connor noob! Hello
Alka is offline
shine771
Senior Member
Join Date: Jun 2007
Old 07-17-2007 , 08:59   Re: Really Need Some Help...
Reply With Quote #3

Sorry for Double Post
Ok i figured out... I only need to place the entity anywhere in map. In i got fog for cs 1.6... I just need to know how to create that entity... and set those key values...
shine771 is offline
shine771
Senior Member
Join Date: Jun 2007
Old 07-17-2007 , 09:01   Re: Really Need Some Help...
Reply With Quote #4

Big BIG THANKS +Karma
shine771 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 21:28.


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