AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   VSH / Freak Fortress (https://forums.alliedmods.net/forumdisplay.php?f=154)
-   -   FF2 [Abilities] Fog Effects (BETA) (https://forums.alliedmods.net/showthread.php?t=284270)

93SHADoW 06-23-2016 00:47

[Abilities] Fog Effects (BETA)
 
8 Attachment(s)

Fog Effects (BETA)

http://i.imgur.com/52CpTkfh.jpg

"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"
        }


Naydef 06-23-2016 07:52

Re: [Abilities] Fog Effects (BETA)
 
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);
    } 


Chdata 06-23-2016 09:57

Re: [Abilities] Fog Effects (BETA)
 
what about skybox fog

93SHADoW 06-23-2016 11:30

Re: [Abilities] Fog Effects (BETA)
 
Quote:

Originally Posted by Naydef (Post 2429888)
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.

Naydef 06-29-2016 14:21

Re: [Abilities] Fog Effects (BETA)
 
This subplugin seems to crash my server!
Crash Dumps:
https://crash.limetech.org/mei23v4aiquu
https://crash.limetech.org/npnpdsqczoqy

friagram 06-30-2016 10:08

Re: [Abilities] Fog Effects (BETA)
 
stops copies me.

Naydef 07-07-2016 16:43

Re: [Abilities] Fog Effects (BETA)
 
2 Attachment(s)
Here's a fixed version of the subplugin with server crashes (hopefully) fixed! Changed version number to 1.02

Chdata 07-08-2016 17:10

Re: [Abilities] Fog Effects (BETA)
 
support for https://developer.valvesoftware.com/wiki/Sky_camera yet?

93SHADoW 07-13-2016 00:38

Re: [Abilities] Fog Effects (BETA)
 
Quote:

Originally Posted by Chdata (Post 2434874)

to-do.

Chdata 07-13-2016 13:07

Re: [Abilities] Fog Effects (BETA)
 
sky_camrearer

93SHADoW 07-19-2016 17:32

Re: [Abilities] Fog Effects (BETA)
 
This patch should actually fix servers crashing.

version bumped to v1.03.

Support for sky_camera coming soon....
Spoiler

friagram 07-21-2016 02:56

Re: [Abilities] Fog Effects (BETA)
 
i dont think sky camera fog is networked....

93SHADoW 08-04-2016 13:56

Re: [Abilities] Fog Effects (BETA)
 
Heres v1.04.

- Actually fixed a critical bug that caused servers to crash related to deleting an existing "env_fog_controller"
- Will no longer try to find an existing "env_fog_controller" and instead spawn a separate "env_fog_controller" to prevent this issue in the first place.

Spoiler

jaguar1 10-16-2016 12:25

Re: [Abilities] Fog Effects (BETA)
 
Still crashing...
no logs

93SHADoW 10-17-2016 10:54

Re: [Abilities] Fog Effects (BETA)
 
Quote:

Originally Posted by jaguar1 (Post 2462635)
Still crashing...
no logs

Running the latest version? Unless TF2 messed with something again...

jaguar1 10-17-2016 12:01

Re: [Abilities] Fog Effects (BETA)
 
Quote:

Originally Posted by SHADoW NiNE TR3S (Post 2462898)
Running the latest version? Unless TF2 messed with something again...

yes im running the lastest version
i tried Naydef version too

hability works fine but when the round ends my server crash

Naydef 10-18-2016 12:39

Re: [Abilities] Fog Effects (BETA)
 
Quote:

Originally Posted by jaguar1 (Post 2462905)
yes im running the lastest version
i tried Naydef version too

hability works fine but when the round ends my server crash

Don't use my version!

AnubisTF2 08-05-2017 21:58

Re: [Abilities] Fog Effects (BETA)
 
Well, this is strange but:
When the ability is used,
And if the boss LOSES, not wins but loses,
my server crashes
Sooo Ive got no idea how this works but it does.

Tim q 08-19-2020 21:01

Re: [Abilities] Fog Effects (BETA)
 
But how to add fog only for red team?

J0BL3SS 02-21-2021 13:56

Re: [Abilities] Fog Effects (BETA)
 
2 Attachment(s)
  • Ver 1.05
  • AMS Triggers Changed to AMS_IsSubabilityReady(). Now ff2_fog usable with lifeloss.
  • If Someone respawnes while fog is active, the player will be affected as well (Reanimator Respawn for example)
  • Added both "rage_fog_fx" and "fog_fx" an argument that determines who should effected by fog
  • Ver 1.06
  • Ooopsie my bad, fixed ability that shows 0 rage on every boss even they don't have fog ability that uses AMS

New Fog Effect Rage Ability:
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"        "10.0"        // duration
        "arg12"        "1"                // effect; 0=all,1=non-boss team,2=everyone expect boss(s)

        // 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"
}

For Sounds:
Code:

"sound_fogeffect"
{
        "1"        "freak_fortress_2/myboss/darken01.mp3"
        "2"        "freak_fortress_2/myboss/darken02.mp3"
}

New Passife Fog Effect:
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
        "arg11"        "1"                // effect; 0=all,1=non-boss team,2=everyone expect boss(s)
       
        "plugin_name"        "ff2_fog"
}


J0BL3SS 04-02-2021 13:44

Re: [Abilities] Fog Effects (BETA)
 
Fixed My rework of fog,

Ver 1.06
Ooopsie my bad, fixed ability that shows 0 rage on every boss even they don't have fog ability that uses AMS


All times are GMT -4. The time now is 23:59.

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