AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [TF2] False Messages 3.1 (21/03) (https://forums.alliedmods.net/showthread.php?t=98657)

Jindo 07-27-2009 14:31

[TF2] False Messages 3.1 (21/03)
 
2 Attachment(s)
False Messages v3.1
A fun tool for admins that lets you trick people in to thinking that they've found an item, or perhaps you want to trick them in to thinking they've lost an item? And why not reward someone with an achievement that doesn't actually exist?

Commands:

sm_fakeitem <name> - 'Give' someone an item (now handled via a menu).
sm_fakelose <name> "Item" - 'Take' an item from someone.
sm_fakeach <name> "Name of Achievement" - 'Give' someone an achievement.
sm_fakecraft <name> "Item" - Craft an item.
sm_vo Message - Fake a voice command message.

CVars:

falsemessages_version - Version of the plugin.
falsemessages_fireworks (1) - Enable the achievement effects when items are found.
falsemessages_losesound (1) - Enable the lose item sound.
falsemessages_textcolor (0) - Non-zero uses the achievement text color (olive) instead of the yellow color for item finds/crafts.
falsemessages_itemflag (a) - Flag required to use item-related commands.
falsemessages_achflag (a) - Flag required to use the fake achievement command.
falsemessages_voflag (a) - Flag required to use the fake voice command.
falsemessages_delay (0) - Non-zero adds a delay between uses of any command.
falsemessages_nodelayflag () - Players with this flag are immune to the delay.

Note: the 'z' flag automatically bypasses any restrictions.

Screenshots:

[IMG]http://img29.**************/img29/5774/fakes2.jpg[/IMG]
[IMG]http://img40.**************/img40/7477/fakes1.jpg[/IMG]

Credit:

BrutalGeorge - the achievement's particle script was adapted from their Kill-Streak Orgasm Script, thanks for that! Also a big thanks for the pointers on fixing the various bugs that have shown up so far.

The killingJoke Servers - for making a fun testing environment.

Changes:

3.0:

  • Fixed all errors.
  • Rewrote plugin.
  • More exciting features planned.

---

That should be everything, attached is the plugin and the source, if anything goes wrong, I recommend first compiling the source in the compiler that came with your version of SourceMod (after that I'll do my best to fix any issues that there may be, but from the testing that I've done the plugin seems to work flawlessly).


BrutalGoerge 07-27-2009 16:19

Re: [TF2] False Item + Achievement Messages
 
I think i tried this, and it worked..
if you use EmitSoundToAll, and use the client who is getting the achievemnt as the entity, everyone will hear the sound coming from that client, and it will travel with them.

and you don't have to get people's position.

still awesome stuff.

Having fun with it :)

Jindo 07-27-2009 16:28

Re: [TF2] False Item + Achievement Messages
 
I'll certainly give that a try, thanks :). At the time, the method I used was that only method I could get to work (I hadn't tried yours yet), and I was pretty desperate to fix it since "/fakeachievement @all 'Something'" resulted in ear rape for everyone :3.

Glad you like it!

BrutalGoerge 07-27-2009 16:31

Re: [TF2] False Item + Achievement Messages
 
oh that's a good point.

22:04:35 L 07/28/2009 - 00:04:30: [SM] Native "GetEntPropVector" reported: Entity 29 is invalid
22:04:35 L 07/28/2009 - 00:04:30: [SM] Displaying call stack trace for plugin "fakemessages.smx":
22:04:35 L 07/28/2009 - 00:04:30: [SM] [0] Line 223, /home/groups/alliedmodders/forums/files/5/2/7/8/3/46295.attach::AchievementMessage()
22:04:35 L 07/28/2009 - 00:04:30: [SM] [1] Line 190, /home/groups/alliedmodders/forums/files/5/2/7/8/3/46295.attach::Command_FakeAchievement()

Without looking at anything, i bet a IsPlayerAlive(client) check would fix that :D

noodleboy347 07-28-2009 00:08

Re: [TF2] False Item + Achievement Messages
 
It shows up in the console as well as chat. Any way to fix that? Anyways, good job on the effects, although the client you do it on shouldn't be able to see the effects even while taunting.

Jindo 07-28-2009 03:14

Re: [TF2] False Item + Achievement Messages
 
Quote:

Originally Posted by noodleboy347 (Post 883578)
Anyways, good job on the effects, although the client you do it on shouldn't be able to see the effects even while taunting.

IIRC, when a real achievement is earnt you're able to see the effects yourself, I'm not sure how I would go about hiding the effects for a certain person though.

Quote:

Originally Posted by BrutalGoerge (Post 883285)
Without looking at anything, i bet a IsPlayerAlive(client) check would fix that :D

I'll be fixing that now :).

noodleboy347 07-28-2009 03:32

Re: [TF2] False Item + Achievement Messages
 
I just noticed that the... effects are a bit low. Like the achievement effects are normally a bit higher. And I don't think they should move around with the player (as in, taunting, it moves when it shouldn't.

Jindo 07-28-2009 03:33

Re: [TF2] False Item + Achievement Messages
 
Yeah they are kind of low, I'll do some testing later to see if I can make them higher. I'm not sure if I can have the effects follow the player without moving with them when they taunt, but I'll do my best (if anyone knows about this stuff and is willing to help out it would be greatly appreciated).

Updated the attachment, hopefully this new one won't produce any errors.

noodleboy347 07-28-2009 04:20

Re: [TF2] False Item + Achievement Messages
 
Quote:

Originally Posted by Jindo (Post 883666)
Yeah they are kind of low, I'll do some testing later to see if I can make them higher. I'm not sure if I can have the effects follow the player without moving with them when they taunt, but I'll do my best (if anyone knows about this stuff and is willing to help out it would be greatly appreciated).

Updated the attachment, hopefully this new one won't produce any errors.

Awesome, thanks! And good job on the plugin, I've been waiting for something like this :)

Jindo 07-29-2009 04:57

Re: [TF2] False Item + Achievement Messages
 
Another fix, the achievement particles should be in the right place now :).


All times are GMT -4. The time now is 14:11.

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