Raised This Month: $301 Target: $400
 75% 

FF2 [Abilities] Fog Effects (BETA)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
93SHADoW
AlliedModders Donor
Join Date: Jul 2014
Location: Houston, TX
Old 06-23-2016 , 00:47   [Abilities] Fog Effects (BETA)
Reply With Quote #1


Fog Effects (BETA)



"Every Town Has An Elm Street" -Freddy Krueger

This can be configured as a RAGE, or as a passive effect.
NOTE: THIS DOES NOT CHANGE THE SKYBOX TEXTURE! IT ONLY CREATES THE EFFECT NECESSARY TO CREATE FOG EFFECTS, LIKE THE SCREENSHOT ABOVE!

RAGE. Compatible with Ability Management System:
Code:
	"abilityX"
	{
		"name"	"rage_fog_fx"
		"arg1"	"0" // blend
		
		// color 1
		"arg2"	"0"	// red
		"arg3"	"0"	// green
		"arg4"	"0"	// blue
		
		// color 2
		"arg5"	"0"	// red
		"arg6"	"0"	// green
		"arg7"	"0"	// blue
		
		// fog properties
		"arg8"	"64.0"	// fog start distance
		"arg9"	"384.0"	// fog end distance
		"arg10"	"1.0"	// fog density
		"arg11"	"5.0"	// fog duration
		
		// only needed if using AMS
		"arg1001"	"0.0" // delay before first use 
		"arg1002"	"30.0" // cooldown 
		"arg1003"	"Darken" // name 
		"arg1004"	"Every town has an Elm Street" // description 
		"arg1005"	"50.0" // rage cost 
		"arg1006"	"0" // index for ability in the AMS menu 
		"plugin_name"	"ff2_fog"
	}
PASSIVE:
Code:
	"abilityX"
	{
		"name"	"fog_fx"
		"arg1"	"0" // blend
		
		// color 1
		"arg2"	"0"	// red
		"arg3"	"0"	// green
		"arg4"	"0"	// blue
		
		// color 2
		"arg5"	"0"	// red
		"arg6"	"0"	// green
		"arg7"	"0"	// blue
		
		// fog properties
		"arg8"	"64.0"	// fog start distance
		"arg9"	"384.0"	// fog end distance
		"arg10"	"1.0"	// fog density
		
		"plugin_name"	"ff2_fog"
	}
Attached Files
File Type: smx ff2_fog.smx (9.4 KB, 925 views)
File Type: sp Get Plugin or Get Source (ff2_fog.sp - 733 views - 6.8 KB)
__________________

Last edited by 93SHADoW; 08-04-2016 at 13:54.
93SHADoW is offline
Send a message via AIM to 93SHADoW Send a message via Skype™ to 93SHADoW
Naydef
Senior Member
Join Date: Dec 2015
Location: Doom Town, Nevada
Old 06-23-2016 , 07:52   Re: [Abilities] Fog Effects (BETA)
Reply With Quote #2

PHP Code:
    if(fogDuration[client]!=INACTIVE)
        {
            
fogDuration[client]=INACTIVE;
            
SDKUnhook(clientSDKHook_ThinkFogTimer);
        } 
SDKHook_Think? I thought is was only for non-clients. I think this is mistake. I see also:
PHP Code:
else
    {
        
fogDuration[client]=GetGameTime()+FF2_GetAbilityArgumentFloat(bossthis_plugin_name"rage_fog_fx"115.0);
        
SDKHook(clientSDKHook_PreThinkPostFogTimer);
    } 
__________________
My plugins:
*None for now*


Steam:
naydef

Last edited by Naydef; 06-23-2016 at 08:02.
Naydef is offline
Chdata
Veteran Member
Join Date: Aug 2012
Location: Computer Chair, Illinois
Old 06-23-2016 , 09:57   Re: [Abilities] Fog Effects (BETA)
Reply With Quote #3

what about skybox fog
__________________
Chdata is offline
93SHADoW
AlliedModders Donor
Join Date: Jul 2014
Location: Houston, TX
Old 06-23-2016 , 11:30   Re: [Abilities] Fog Effects (BETA)
Reply With Quote #4

Quote:
Originally Posted by Naydef View Post
PHP Code:
    if(fogDuration[client]!=INACTIVE)
        {
            
fogDuration[client]=INACTIVE;
            
SDKUnhook(clientSDKHook_ThinkFogTimer);
        } 
SDKHook_Think? I thought is was only for non-clients. I think this is mistake. I see also:
PHP Code:
else
    {
        
fogDuration[client]=GetGameTime()+FF2_GetAbilityArgumentFloat(bossthis_plugin_name"rage_fog_fx"115.0);
        
SDKHook(clientSDKHook_PreThinkPostFogTimer);
    } 

Yea, meant to use PreThinkPost, thanks for pointing it out. Fixed.
__________________
93SHADoW is offline
Send a message via AIM to 93SHADoW Send a message via Skype™ to 93SHADoW
Naydef
Senior Member
Join Date: Dec 2015
Location: Doom Town, Nevada
Old 06-29-2016 , 14:21   Re: [Abilities] Fog Effects (BETA)
Reply With Quote #5

This subplugin seems to crash my server!
Crash Dumps:
https://crash.limetech.org/mei23v4aiquu
https://crash.limetech.org/npnpdsqczoqy
__________________
My plugins:
*None for now*


Steam:
naydef

Last edited by Naydef; 06-30-2016 at 10:21.
Naydef is offline
friagram
Veteran Member
Join Date: Sep 2012
Location: Silicon Valley
Old 06-30-2016 , 10:08   Re: [Abilities] Fog Effects (BETA)
Reply With Quote #6

stops copies me.
__________________
Profile - Plugins
Add me on steam if you are seeking sp/map/model commissions.
friagram is offline
Naydef
Senior Member
Join Date: Dec 2015
Location: Doom Town, Nevada
Old 07-07-2016 , 16:43   Re: [Abilities] Fog Effects (BETA)
Reply With Quote #7

Here's a fixed version of the subplugin with server crashes (hopefully) fixed! Changed version number to 1.02
Attached Files
File Type: sp Get Plugin or Get Source (ff2_fog.sp - 168 views - 6.8 KB)
File Type: smx ff2_fog.smx (9.3 KB, 194 views)
__________________
My plugins:
*None for now*


Steam:
naydef
Naydef is offline
Chdata
Veteran Member
Join Date: Aug 2012
Location: Computer Chair, Illinois
Old 07-08-2016 , 17:10   Re: [Abilities] Fog Effects (BETA)
Reply With Quote #8

support for https://developer.valvesoftware.com/wiki/Sky_camera yet?
__________________
Chdata is offline
93SHADoW
AlliedModders Donor
Join Date: Jul 2014
Location: Houston, TX
Old 07-13-2016 , 00:38   Re: [Abilities] Fog Effects (BETA)
Reply With Quote #9

Quote:
Originally Posted by Chdata View Post
to-do.
__________________
93SHADoW is offline
Send a message via AIM to 93SHADoW Send a message via Skype™ to 93SHADoW
Chdata
Veteran Member
Join Date: Aug 2012
Location: Computer Chair, Illinois
Old 07-13-2016 , 13:07   Re: [Abilities] Fog Effects (BETA)
Reply With Quote #10

sky_camrearer
__________________
Chdata is offline
Reply


Thread Tools
Display Modes

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 10:46.


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