AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting (https://forums.alliedmods.net/forumdisplay.php?f=107)
-   -   [CSS] Make a player invisible? (https://forums.alliedmods.net/showthread.php?t=338224)

maxi2014 06-19-2022 10:57

[CSS] Make a player invisible?
 
Hi!
Is it possible to make a player invisible in css?

PHP Code:

public void OnPluginStart() {
    
RegConsoleCmd("sm_invisible"invisible"_");
}
public 
Action invisible(int clientint args) {
    
// TODO


Thanks for helping.

eyal282 06-19-2022 17:04

Re: [CSS] Make a player invisible?
 
Quote:

Originally Posted by maxi2014 (Post 2781936)
Hi!
Is it possible to make a player invisible in css?

PHP Code:

public void OnPluginStart() {
    
RegConsoleCmd("sm_invisible"invisible"_");
}
public 
Action invisible(int clientint args) {
    
// TODO


Thanks for helping.

SDKHook(client, SDKHook_SetTransmit, Event_SetTransmit)

This allows you to prevent the client from being sent to other players.

In L4D2, it even removes the player from scoreboard.

In CS:GO, I've been told it bypasses wallhack when making a player invisible.

Simply return false from the Event_SetTransmit function

Marttt 06-19-2022 19:28

Re: [CSS] Make a player invisible?
 
Some stuff can be achieved using SetEntityRenderMode = RENDER_TRANSCOLOR and SetEntityRenderColor with alpha "0" as well.

eyal282 06-20-2022 03:20

Re: [CSS] Make a player invisible?
 
Quote:

Originally Posted by Marttt (Post 2781957)
Some stuff can be achieved using SetEntityRenderMode = RENDER_TRANSCOLOR and SetEntityRenderColor with alpha "0" as well.

In CS:GO, render mode appears to contain shadows.

SetTransmit is always the best approach, as it does ( or attempt ) three actions:

1. Removes a player and attachments from any target player's computer.

2. Prevent Wallhacking due to the server thinking the player should be invisible ( obstructed by something anyways )

3. Prevent high FPS due to the server thinking the player should be invisible ( obstructed by something anyways )

andi67 06-26-2022 06:10

Re: [CSS] Make a player invisible?
 
He was talking about CSS.....

eyal282 06-26-2022 15:50

Re: [CSS] Make a player invisible?
 
Quote:

Originally Posted by andi67 (Post 2782483)
He was talking about CSS.....

There isn't a reason CS:GO is different from CSS in the regard that SetTransmit is the best way, as SetTransmit seems more related to Hammer World Editor's way to optimize, something both games share.


All times are GMT -4. The time now is 13:38.

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