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

Camera looks invisible in terrorists/zombies


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
wicho
Veteran Member
Join Date: Feb 2012
Location: GuateAmala
Old 06-13-2020 , 18:05   Camera looks invisible in terrorists/zombies
Reply With Quote #1

Hi everyone, well I use a camera plugin that when a player writes /cam can be seen at different angles, it works well but when the terrorist/zombie writes /cam it looks transparent for a millisecond but then becomes invisible, with the antiterrorist/human it works good. Does anyone know what is the problem? ... Thanks in advance

This is the code:

PHP Code:
#include <amxmodx> 
#include <engine> 

const KEYS MENU_KEY_0|MENU_KEY_1|MENU_KEY_2|MENU_KEY_3 

public plugin_init() 

         
register_plugin("Camera Changer""1.1""XunTric"
         
register_menucmd(register_menuid("\rChoose Camera View"), KEYS"setview"

         
register_clcmd("say /camera""chooseview"
         
register_clcmd("say_team /camera""chooseview"

         
register_clcmd("say /cam""chooseview"
         
register_clcmd("say_team /cam""chooseview"


public 
plugin_precache() 

         
precache_model("models/rpgrocket.mdl"


public 
chooseview(id

         
show_menu(idKEYS"\rChoose Camera View^n^n\r1. \w3rd Person View^n\r2. \wUpside View^n\r3. \wNormal View^n^n\r0. \wExit"


public 
setview(idkeymenu

         switch(
key
         { 
                  case 
0
                  { 
                           
set_view(idCAMERA_3RDPERSON
                  } 
                  case 
1
                  { 
                           
set_view(idCAMERA_TOPDOWN
                  } 
                  case 
2
                  { 
                           
set_view(idCAMERA_NONE
                  } 
         } 
         return 
PLUGIN_HANDLED 

wicho is offline
condoriano90
Member
Join Date: May 2020
Old 06-13-2020 , 18:14   Re: Camera looks invisible in terrorists/zombies
Reply With Quote #2

You need to decompile the model and remove this line:
Code:
$texrendermode "xxx.bmp" "masked"
from its .qc file and recompile
condoriano90 is offline
abdobiskra
Veteran Member
Join Date: Jul 2014
Location: Algeria
Old 06-14-2020 , 11:48   Re: Camera looks invisible in terrorists/zombies
Reply With Quote #3

PHP Code:
#include <amxmodx>
#include <fakemeta>

public plugin_init()
    
register_forward(FM_AddToFullPack"fwFmAddToFullPack"1);

public 
fwFmAddToFullPack(es_handleeenthostflagsplayerpSet)
{
    if (!
player || host != ent )
        return;
        
    
set_es(es_handleES_RenderModehost

__________________
abdobiskra is offline
Send a message via Skype™ to abdobiskra
Natsheh
Veteran Member
Join Date: Sep 2012
Old 06-14-2020 , 12:17   Re: Camera looks invisible in terrorists/zombies
Reply With Quote #4

Quote:
Originally Posted by abdobiskra View Post
PHP Code:
#include <amxmodx>
#include <fakemeta>

public plugin_init()
    
register_forward(FM_AddToFullPack"fwFmAddToFullPack"1);

public 
fwFmAddToFullPack(es_handleeenthostflagsplayerpSet)
{
    if (!
player || host != ent )
        return;
        
    
set_es(es_handleES_RenderModehost


What is host have to do with render mode?

set_es(es_handle, ES_RenderMode, host)
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
abdobiskra
Veteran Member
Join Date: Jul 2014
Location: Algeria
Old 06-14-2020 , 13:52   Re: Camera looks invisible in terrorists/zombies
Reply With Quote #5

Quote:
Originally Posted by Natsheh View Post
What is host have to do with render mode?

set_es(es_handle, ES_RenderMode, host)
A good question and I don't have an answer, maybe we should check if he does not have kRenderTransTexture or he has kRenderTransAlpha I did not check it because it works with me..maybe might check what the host has and put it for him but it is stupid to think so
I am also puzzled
__________________
abdobiskra is offline
Send a message via Skype™ to abdobiskra
Natsheh
Veteran Member
Join Date: Sep 2012
Old 06-14-2020 , 15:04   Re: Camera looks invisible in terrorists/zombies
Reply With Quote #6

host will return a client index between 1 - 32 if im not mistaken.

should be instead kRenderNone
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
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 05:53.


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