Raised This Month: $ Target: $400
 0% 

Solved [ H3LP ] Remove alpha from câmera ?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 04-17-2017 , 10:05   [ H3LP ] Remove alpha from câmera ?
Reply With Quote #1

Hey, when I set upleft/3rd view into the player, a alpha is added into he model. How to remove this alpha ?
__________________









Last edited by CrazY.; 04-19-2017 at 19:01. Reason: Solved
CrazY. is offline
Craxor
Veteran Member
Join Date: Jan 2016
Location: Romania
Old 04-17-2017 , 15:23   Re: [ H3LP ] Remove alpha from câmera ?
Reply With Quote #2

What alpha do you mean ... you're talking about transparency or what?
__________________
Project: Among Us
Craxor is offline
Send a message via ICQ to Craxor
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 04-17-2017 , 15:29   Re: [ H3LP ] Remove alpha from câmera ?
Reply With Quote #3

Transparency.
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx is offline
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 04-17-2017 , 16:29   Re: [ H3LP ] Remove alpha from câmera ?
Reply With Quote #4

Yes. set_view (from engine.Inc)

That add a transparency into the player model.. I dont want that.
__________________









Last edited by CrazY.; 04-17-2017 at 18:38.
CrazY. is offline
abdobiskra
Veteran Member
Join Date: Jul 2014
Location: Algeria
Old 04-17-2017 , 18:15   Re: [ H3LP ] Remove alpha from câmera ?
Reply With Quote #5

Addtofullpack?
__________________
abdobiskra is offline
Send a message via Skype™ to abdobiskra
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 04-17-2017 , 18:32   Re: [ H3LP ] Remove alpha from câmera ?
Reply With Quote #6

Tryied, dont worked.

https://forums.alliedmods.net/showpo...3&postcount=11
__________________








CrazY. is offline
PRoSToTeM@
Veteran Member
Join Date: Jan 2010
Location: Russia, Ivanovo
Old 04-17-2017 , 19:46   Re: [ H3LP ] Remove alpha from câmera ?
Reply With Quote #7

You should hook AddToFullPack Post.
__________________

Last edited by PRoSToTeM@; 04-17-2017 at 19:46.
PRoSToTeM@ is offline
Send a message via ICQ to PRoSToTeM@ Send a message via Skype™ to PRoSToTeM@
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 04-18-2017 , 14:03   Re: [ H3LP ] Remove alpha from câmera ?
Reply With Quote #8

No.. no work.. any other idea ?
__________________








CrazY. is offline
abdobiskra
Veteran Member
Join Date: Jul 2014
Location: Algeria
Old 04-18-2017 , 14:08   Re: [ H3LP ] Remove alpha from câmera ?
Reply With Quote #9

here !:
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <fakemeta>
#include <engine>

new g_iRenderMode[33]

public 
plugin_init()
{

    
register_menucmd(register_menuid("Choose Camera View"), 1023"setview"

    
register_clcmd("say /cam""chooseview")
    
register_clcmd("say_team /cam""chooseview")   
    
    
register_forward(FM_AddToFullPack"fwFmAddToFullPack"1);
}

public 
plugin_modules()
{
    
require_module("engine")
}

public 
plugin_precache()
{
    
precache_model("models/rpgrocket.mdl")
}

public 
chooseview(id)
{
    new 
menu[192
    new 
keys MENU_KEY_0|MENU_KEY_1|MENU_KEY_2|MENU_KEY_3|MENU_KEY_4
    format
(menu191"Choose Camera View^n^n1. 3rd Person View^n2. Upside View^n3. Up left^n4. Normall View^n^n0. Exit"
    
show_menu(idkeysmenu)      
    return 
PLUGIN_CONTINUE
}

public 
setview(idkeymenu)
{
    if(
key == 0) {
         
set_view(idCAMERA_3RDPERSON)
         return 
PLUGIN_HANDLED
    
}

    if(
key == 1) {
         
set_view(idCAMERA_TOPDOWN)
         return 
PLUGIN_HANDLED
    
}

    if(
key == 2) {
        
set_viewid)
    return 
PLUGIN_HANDLED
    
}
    if(
key == 3) {
         
set_view(idCAMERA_NONE)
         return 
PLUGIN_HANDLED
    
}
    

    else {
         return 
PLUGIN_HANDLED
    
}

    return 
PLUGIN_HANDLED
}
public 
fwFmAddToFullPack(es_handleeenthostflagsplayerpSet)
{
    if (!
player || host != ent )
        return;
    
set_es(es_handleES_RenderModeg_iRenderMode[host]) //kRenderTransAdd so that the player can see his model in the dark

}
public 
client_disconnect(id)
{
    
set_viewid)

__________________

Last edited by abdobiskra; 07-22-2017 at 12:45.
abdobiskra is offline
Send a message via Skype™ to abdobiskra
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 04-18-2017 , 18:11   Re: [ H3LP ] Remove alpha from câmera ?
Reply With Quote #10

Its ok.. I will test it after.
__________________








CrazY. 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 17:48.


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