AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Disabling Crosshairs (https://forums.alliedmods.net/showthread.php?t=20364)

Cheap_Suit 11-07-2005 09:28

Disabling Crosshairs
 
Can disable crosshair? If so how?

haimmaik 11-07-2005 11:18

hmm try removing the sprite? Oo

XxAvalanchexX 11-07-2005 15:29

No, crosshairs are client side.

If you're really desperate you could try sending the CurWeapon as the game would, but instead of using the player's current weapon id use the knife weapon id, which will cause the client to think he has a knife, and that won't draw the crosshair. However, this will probably cause a lot of other client side glitches.

Cheap_Suit 11-07-2005 17:03

nice idea, thnx i will try it

Batman/Gorlag 11-07-2005 17:09

Actually if you have a knife your crosshair would still show =\. Use any sniper weapon as the weapon id. Crosshair would not show at all.

Cheap_Suit 11-07-2005 17:12

Edit:
Sorry I wanna cut time short, how do you get the user make him think he has a c4?

@Batman/Gorlag
Maybe the glitch would be you can zoom. My best bet is on the c4, disabling plant using a cstrike function (forgot).

XxAvalanchexX 11-07-2005 17:53

Zooming and planting is server side, this is only to trick the client into thinking he has a different weapon, and thus not display a crosshair. I'm not sure exactly how the CurWeapon event is supposed to be sent, though.

Cheap_Suit 11-07-2005 18:32

thnx for the info XxAvalanchexX

mordi 08-05-2007 13:07

Re: Disabling Crosshairs
 
Cheap_Suit, can you make a plugin for this?

mogel 08-05-2007 14:04

Re: Disabling Crosshairs
 
Hi,

Code:

public Player_Crosshair(player) {
    message_begin(MSG_ONE, get_user_msgid("HideWeapon"), {0, 0, 0}, player)
    write_byte(64 + 32) // kill Crosshair
    message_end()
}

hand, mogel


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

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