AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Maximum visibility? (https://forums.alliedmods.net/showthread.php?t=19804)

secretasianman 10-25-2005 21:40

Maximum visibility?
 
1 Attachment(s)
Okay, I'm trying to make the Credits Mod by Atambo I think, make people completely or 99% invisible, heres the script part...

Code:

//eg. (stealthperbuy = 60) times (stealthmaxlvl = 3) = 180 // the value must be lower than the defaultstealth
#define defaultstealth 200
#define stealthperbuy 20

What can I change to make them really invisible?



Credits Mod:
http://forums.alliedmods.net/showthread.php?t=16327[/url]

[ --<-@ ] Black Rose 10-25-2005 21:45

u want them to get totally invis on 1 buy?

XxAvalanchexX 10-25-2005 23:00

Try changing one of them to 0, as anything times 0 is 0.

Unless of course 255 is fully invisible, I can't remember, in which case stealthperbuy should be 255 and stealthlevels should be 1.

[ --<-@ ] Black Rose 10-26-2005 03:05

0 is INvisible and 255 is visible

secretasianman 10-26-2005 16:02

0o I wanted full invis in 6 buys, so I make it #define defaultsteath 255 and #define stealthperbuy 42? or can I make it 42.5? (does CS/AMX allow decimals?)

XxAvalanchexX 10-26-2005 17:24

It depends on if the plugin grabs an integer (no decimals) or a float (yes decimals).


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

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