Stealth Assassin
1 Attachment(s)
This is my first plugin, and it is kind of a compilation of code from various authors (all well credited). You have the option of making knifes one hit kills, turning down knife users visibility (so they can hide), making the knife user view in third person, giving a speed boost to knife users, and gives them no footstep sounds. Most of these things are configurable with the cvars below:
Cvars: amx_stealthvalue <0-255> -Changes how visible you are when stealthing. amx_stealth3rdperson <0 or 1> -Set to 0 if you don't want players turning to third person view when using knife. amx_stealthspeed <any> -Set to bonus speed you want knife users to get, turn to 325 to make players go default speed (no bonus). amx_stealthonehitkill <0 or 1> -Switches to turn one hit knife kills off or on. Commands: amx_stealthmode <0 or 1> -Switches all players to their knifes, sets to darker lighting, and drops guns if users try to switch to them. NOTE: I cannot help that the thirdperson view does not represent your actual transparency that everyone else sees, this is set by AMXX internally, so if you don't like it, turn third person off, or set the transparency to something close to what it looks like in third person. Have fun. Code:
/*************************************************************** |
*UPDATE* New version guys, those who downloaded please download again, I guess I should of tested better :). All bugs fixed (I think).
I am also thinking of adding less and less visibility the more still you are standing, and being revealed if somebody shoots you, or bumps into you. |
Quote:
Anyway, are you sure that client_damage will return the same id for attacker and victim if it is from fall damage? Would it return 0 (as in the world entity) as the attacker instead? Or if it is coming from a trigger_hurt would it return an attacker higher than 32 (as in the entity index)? Although client_damage may filter damage such as that because it is supposed to be called only when one player attacks another. |
I was wondering about this too, but when I tried it, it does filter out fall damage ONLY SOMETIMES THOUGH! I am really not sure what sets it off, but it quits working after a while. I did not write the fall damage filter part, so if you could find a better method, I would gladly add it and credit you.
I already have the next version in the works (with a stealth meter) that tells you how much you are cloaked. Standing still will make you more and more invisible, and it will take you longer to go back to default knife visibility while running after you reached maximum cloaking. May take me awhile though since I am working on multiple plugins. |
*UPDATE*
v1.2 -Added thirdperson view when using knife (if set that way). -Added message on channel 4 because lots of amxx plugins were removing the message. -Added stealth match mode. -Using the knife now gives you a bit of an additional speed boost (if set that way). --- I added alot of cvars to change whatever you want, although I will add even more for you in the next version if somebody wants, for changing footsteps, and one hit kills. The stealthmatch mode is pretty neat, it makes the lights pretty dark (so you can stealth around), and switches back to knife (doesn't drop so you dont lose your weapons for good) if you try to bring out a gun. I might add some user votes for that mode in the future. NOTE: I cannot help that the thirdperson view does not represent your actual transparency that everyone else sees, this is set by AMXX internally, so if you don't like it, turn third person off, or set the transparency to something close to what it looks like in third person. |
Good job for a first plugin , this is a great idea.
|
is there a way you can make a certain person turn into stealth? maybe the command can be like amx_stealth (name) on
|
No , it makes everyone stealth.
|
Ya there's not a real point to just make one person use this plugin, it's kind of a fun thing for everybody, try amx_stealthmatch 1 for some real fun. I had 6 players on my server with this one, very scary, it almost gave me a heart attack :P.
|
I'm getting a bad load on this, is there anything else that needs to be running for this to work?
|
All times are GMT -4. The time now is 00:53. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.