Raised This Month: $32 Target: $400
 8% 

You know those couple seconds once u die?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
blood2k
Senior Member
Join Date: Mar 2014
Old 11-10-2017 , 20:28   You know those couple seconds once u die?
Reply With Quote #1

Once you die, and you can see where the enemy went for like 2-3 seconds I believe it's called a spec freezecam or something.. anyhow


I want to add this to my 5v5 match server so once you die you can't see those couple seconds of where the enemy went. Maybe just forcing you to automatic spectate your teammate. Or fading your screen black for those seconds.. before changing to spectating your team?

There was also something that prevents the ability to kinda see through the map when switching between spectating your teamates does anyone know how this is achievable?

blood2k is offline
Relaxing
AlliedModders Donor
Join Date: Jun 2016
Location: White Plains
Old 11-11-2017 , 12:33   Re: You know those couple seconds once u die?
Reply With Quote #2

Spectate team mates only on first person.
__________________
Relaxing is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 11-11-2017 , 12:48   Re: You know those couple seconds once u die?
Reply With Quote #3

Quote:
Originally Posted by Relaxing View Post
Spectate team mates only on first person.
Make sure you read the post again.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
blood2k
Senior Member
Join Date: Mar 2014
Old 11-12-2017 , 23:03   Re: You know those couple seconds once u die?
Reply With Quote #4

Honestly, the whole switch between teamates in spectate and prevent seeing through the map.. is not AS important.

The ability to block any view after dieing is more important, This way you don't see what happens in the next 2-3 seconds after u die so u cant tell your teammates which way the player went.

Last edited by blood2k; 11-12-2017 at 23:04.
blood2k is offline
Hectik17
AlliedModders Donor
Join Date: Oct 2005
Old 11-13-2017 , 01:13   Re: You know those couple seconds once u die?
Reply With Quote #5

Fade to black
Hectik17 is offline
blood2k
Senior Member
Join Date: Mar 2014
Old 11-13-2017 , 01:37   Re: You know those couple seconds once u die?
Reply With Quote #6

fade to black still takes a while to fade.. almost the same time it usualyl takes the camera to stop showing ur death cam and switch to your teamates.

Instant fade to black would prob be better.. or atleast instant change to spec team would be better. SO once u die, u dont see the enemy run a specific way.
blood2k is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 11-13-2017 , 07:49   Re: You know those couple seconds once u die?
Reply With Quote #7

There is fade out from black as well which will work perfectly.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Old 11-13-2017, 09:26
fysiks
This message has been deleted by fysiks. Reason: nvm
blood2k
Senior Member
Join Date: Mar 2014
Old 11-13-2017 , 17:03   Re: You know those couple seconds once u die?
Reply With Quote #8

EDIT:
Figured it out... I'm no scripter.. but here's what I copy and pasted together.. for those who MIGHT want this on a future match server.
This is from connor mcleods code and for anyone who wants fix it up

Code:
#include <amxmodx>
#include "screenfade_util.inc"

#define VERSION "0.0.1"

new 	g_pCvarType3_Red, g_pCvarType3_Green, g_pCvarType3_Blue

public plugin_init()
{
		g_pCvarType3_Red = register_cvar("color_type3_red", "0")
		g_pCvarType3_Green = register_cvar("color_type3_green", "0")
		g_pCvarType3_Blue = register_cvar("color_type3_blue", "0")
		register_plugin("Fade From Black", VERSION, "ConnorMcLeod")

    register_event("DeathMsg", "Event_DeathMsg", "a")
}

public Event_DeathMsg()
{
		new iVictim = read_data(2)
		UTIL_ScreenFade(iVictim, get_cvar_color3(g_pCvarType3_Red, g_pCvarType3_Green, g_pCvarType3_Blue), 7.0, 7.0, 250)


}  

stock get_cvar_color1( g_pCvar ) // 4 natives // 1 if don't use clamp
{
    new Color[3]

    new iTemp = get_pcvar_num(g_pCvar)
    Color[0] = clamp(iTemp / 1000000, 0, 255)
    iTemp %= 1000000
    Color[1] = clamp(iTemp / 1000, 0, 255)
    Color[2] = clamp(iTemp % 1000, 0, 255)

    return Color
}

stock get_cvar_color2( g_pCvar ) // 8 natives // 5 if don't use clamp
{
    new Color[3]

    new szColor[12] // "RRR GGG BBB"
    get_pcvar_string(g_pCvar, szColor, charsmax(szColor))

    new szRed[4], szGreen[4], szBlue[4]
    parse(szColor, szRed, charsmax(szRed), szGreen, charsmax(szGreen), szBlue, charsmax(szBlue))
    Color[0] = clamp(str_to_num(szRed), 0, 255)
    Color[1] = clamp(str_to_num(szGreen), 0, 255)
    Color[2] = clamp(str_to_num(szBlue), 0, 255)

    return Color
}

stock get_cvar_color3( g_pCvar_Red, g_pCvar_Green, g_pCvar_Blue ) // 6 natives // 3 if don't use clamp
{
    new Color[3]

    Color[0] = clamp(get_pcvar_num(g_pCvar_Red), 0, 255)
    Color[1] = clamp(get_pcvar_num(g_pCvar_Green), 0, 255)
    Color[2] = clamp(get_pcvar_num(g_pCvar_Blue), 0, 255)

    return Color
}

with this include - https://forums.alliedmods.net/showth...=87623?t=87623

Last edited by blood2k; 11-13-2017 at 18:46.
blood2k is offline
wickedd
Veteran Member
Join Date: Nov 2009
Old 11-13-2017 , 19:20   Re: You know those couple seconds once u die?
Reply With Quote #9

Here you go, I set it to 5 seconds.
P.S. You will need Connor's include
PHP Code:
#include < amxmodx >
#include < csx >
#include < screenfade_util >

public plugin_init( )
{
    
register_plugin"KILL FADE""0.1""Blood2K" 
}

public 
client_deathiKilleriVictim )
{    
    if( 
is_user_connectediKiller ) && iKiller != iVictim // fade only if killed by enemy 
    
{
        
UTIL_ScreenFadeiVictim, { 00}, 0.25.0255FFADE_IN )
    }

__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd is offline
blood2k
Senior Member
Join Date: Mar 2014
Old 11-13-2017 , 19:26   Re: You know those couple seconds once u die?
Reply With Quote #10

Awesome. Ty s
blood2k 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 20:08.


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