Raised This Month: $51 Target: $400
 12% 

[TF2] False Messages 3.1 (21/03)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Jindo
AlliedModders Donor
Join Date: May 2009
Location: England, UK
Plugin ID:
1045
Plugin Version:
3.1
Plugin Category:
Fun Stuff
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
    4 
    Plugin Description:
    Can display false messages for finding/losing items and earning achievements.
    Old 07-27-2009 , 14:31   [TF2] False Messages 3.1 (21/03)
    Reply With Quote #1

    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).

    Attached Files
    File Type: zip falsemessages.zip (19.2 KB, 5125 views)

    Last edited by Jindo; 03-22-2010 at 14:27.
    Jindo is offline
    BrutalGoerge
    AlliedModders Donor
    Join Date: Jul 2007
    Old 07-27-2009 , 16:19   Re: [TF2] False Item + Achievement Messages
    Reply With Quote #2

    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
    __________________
    My Pluggies If you like, consider to me.
    BrutalGoerge is offline
    Jindo
    AlliedModders Donor
    Join Date: May 2009
    Location: England, UK
    Old 07-27-2009 , 16:28   Re: [TF2] False Item + Achievement Messages
    Reply With Quote #3

    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 .

    Glad you like it!
    Jindo is offline
    BrutalGoerge
    AlliedModders Donor
    Join Date: Jul 2007
    Old 07-27-2009 , 16:31   Re: [TF2] False Item + Achievement Messages
    Reply With Quote #4

    oh that's a good point.

    22:045 L 07/28/2009 - 00:040: [SM] Native "GetEntPropVector" reported: Entity 29 is invalid
    22:045 L 07/28/2009 - 00:040: [SM] Displaying call stack trace for plugin "fakemessages.smx":
    22:045 L 07/28/2009 - 00:040: [SM] [0] Line 223, /home/groups/alliedmodders/forums/files/5/2/7/8/3/46295.attach::AchievementMessage()
    22:045 L 07/28/2009 - 00:040: [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
    __________________
    My Pluggies If you like, consider to me.

    Last edited by BrutalGoerge; 07-28-2009 at 00:05.
    BrutalGoerge is offline
    noodleboy347
    AlliedModders Donor
    Join Date: Mar 2009
    Old 07-28-2009 , 00:08   Re: [TF2] False Item + Achievement Messages
    Reply With Quote #5

    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.
    noodleboy347 is offline
    Jindo
    AlliedModders Donor
    Join Date: May 2009
    Location: England, UK
    Old 07-28-2009 , 03:14   Re: [TF2] False Item + Achievement Messages
    Reply With Quote #6

    Quote:
    Originally Posted by noodleboy347 View Post
    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 View Post
    Without looking at anything, i bet a IsPlayerAlive(client) check would fix that
    I'll be fixing that now .
    Jindo is offline
    noodleboy347
    AlliedModders Donor
    Join Date: Mar 2009
    Old 07-28-2009 , 03:32   Re: [TF2] False Item + Achievement Messages
    Reply With Quote #7

    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.
    noodleboy347 is offline
    Jindo
    AlliedModders Donor
    Join Date: May 2009
    Location: England, UK
    Old 07-28-2009 , 03:33   Re: [TF2] False Item + Achievement Messages
    Reply With Quote #8

    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.
    Jindo is offline
    noodleboy347
    AlliedModders Donor
    Join Date: Mar 2009
    Old 07-28-2009 , 04:20   Re: [TF2] False Item + Achievement Messages
    Reply With Quote #9

    Quote:
    Originally Posted by Jindo View Post
    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
    noodleboy347 is offline
    Jindo
    AlliedModders Donor
    Join Date: May 2009
    Location: England, UK
    Old 07-29-2009 , 04:57   Re: [TF2] False Item + Achievement Messages
    Reply With Quote #10

    Another fix, the achievement particles should be in the right place now .
    Jindo is offline
    Reply



    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 09:53.


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