Monthly Target: $400 Donations: $131
 32% 

[TF2] Fake Gifts [v1.0.1]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
DarthNinja
SourceMod Plugin Approver
Join Date: Mar 2009
Location: PreThinkHook()
Plugin ID:
2040
Plugin Version:
1.0.1
Plugin Category:
Fun Stuff
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
    36 
    Plugin Description:
    Troll the world with fake gifts!
    Old 10-30-2010 , 02:40   [TF2] Fake Gifts [v1.0.1]
    Reply With Quote #1

    [TF2] Fake Gifts!
    Version 1.0.1
    Credit to [NATO]Hunter's TF2 Ammopacks for ammopack spawning code


    Description:
    Spawn fake Halloween gifts or make yourself into a gift!

    Spawned gifts are actually a small ammo-pack in disguise, if they vanish someone probably picked them up!

    As a "gift" you are given godmode, this is removed when gift mode is toggled off.
    Touching a resupply or respawning will remove your "gift" state in order to prevent graphical glitches with flying headgear.

    Commands:
    sm_fakegift - Spawns a fake gift!
    sm_makemegift - Makes you into a gift!
    Cvars:
    sm_fakegifts_version - Plugin Version

    Install Instructions:
    1. Place FakeGifts.smx into your addons/sourcemod/plugins/ folder.

    Notes:
    Default admin level is CHEATS.

    Have fun!

    ToDo:
    • -

    Version History:
    • V1.0.0
      • Initial Release
    • V1.0.1
      • Now precaches model to prevent crashes

    Downloads from 10/30/10 to 11/11/2010: 298
    Attached Files
    File Type: sp Get Plugin or Get Source (FakeGifts.sp - 2296 views - 8.6 KB)
    __________________

    Last edited by DarthNinja; 11-11-2010 at 23:54.
    DarthNinja is offline
    EHG
    Senior Member
    Join Date: May 2009
    Location: 127.0.0.1
    Old 10-30-2010 , 03:06   Re: [TF2] Fake Gifts
    Reply With Quote #2

    I knew someone would make this xD
    Not able to pick up the gift. It doesn't disappear. //EDIT - just realized that my ammo was full when testing, if you can pick up more ammo it works.

    You can use
    Code:
    SetEntPropEnt(client, Prop_Data, "m_hObserverTarget", client);
    SetEntProp(client, Prop_Data, "m_iObserverMode", 1);
    to enable third person
    and
    Code:
    SetEntProp(client, Prop_Send, "m_iObserverMode", 0);
    to disable it.

    you should also use TF2_AddCondition and TF2_RemoveCondition to manage those conditions.

    Last edited by EHG; 10-30-2010 at 04:50.
    EHG is offline
    Skyrider
    AMX Mod X Beta Tester
    Join Date: May 2005
    Location: Netherlands
    Old 10-30-2010 , 08:49   Re: [TF2] Fake Gifts
    Reply With Quote #3

    Quote:
    sm_makemegift
    Unknown command: sm_makemegift
    Mmm.
    __________________
    Skyrider is offline
    Send a message via AIM to Skyrider Send a message via MSN to Skyrider Send a message via Yahoo to Skyrider
    Leonardo
    Veteran Member
    Join Date: Feb 2010
    Location: Soviet Union
    Old 10-30-2010 , 10:31   Re: [TF2] Fake Gifts
    Reply With Quote #4


    lol'd.
    __________________
    Leonardo is offline
    XeonDead
    Junior Member
    Join Date: Oct 2010
    Old 10-30-2010 , 10:37   Re: [TF2] Fake Gifts
    Reply With Quote #5

    Aw, that's funny, but isn't it possible to make REAL gifts, not fake?
    XeonDead is offline
    DarthNinja
    SourceMod Plugin Approver
    Join Date: Mar 2009
    Location: PreThinkHook()
    Old 10-30-2010 , 10:58   Re: [TF2] Fake Gifts
    Reply With Quote #6

    Quote:
    Originally Posted by FF|Skyrider View Post
    Mmm.
    Works fine here.
    User error?

    Quote:
    Originally Posted by XeonDead View Post
    Aw, that's funny, but isn't it possible to make REAL gifts, not fake?
    Nope.
    __________________
    DarthNinja is offline
    FlaminSarge
    Veteran Member
    Join Date: Jul 2010
    Old 10-30-2010 , 23:20   Re: [TF2] Fake Gifts
    Reply With Quote #7

    Maybe work with this guy or merge? http://forums.alliedmods.net/showthread.php?p=1337143
    __________________
    Bread EOTL GunMettle Invasion will break everything. Don't even ask.

    All plugins: Randomizer/GiveWeapon, ModelManager, etc. (+SaxtonHale)
    Don't ask me about SourceMod stuff on Steam; instead, post in a thread or send PM here. You will be fed to javalia otherwise.
    Psyduck likes replays.
    FlaminSarge is offline
    DarthNinja
    SourceMod Plugin Approver
    Join Date: Mar 2009
    Location: PreThinkHook()
    Old 10-31-2010 , 03:07   Re: [TF2] Fake Gifts
    Reply With Quote #8

    Quote:
    Originally Posted by FlaminSarge View Post
    Now why would you propose something like that?
    That plugin uses SDKHooks and only produces a solid, non-spinning gift box!
    Anyway I was here first.... by 3 whole hours!

    I'm planning to make an exploding version of the gift, as well as some other... "improvements".
    __________________
    DarthNinja is offline
    WiKer
    Member
    Join Date: Apr 2009
    Old 10-31-2010 , 09:30   Re: [TF2] Fake Gifts
    Reply With Quote #9

    will it disapear?

    Last edited by WiKer; 10-31-2010 at 17:18.
    WiKer is offline
    Tom_007
    New Member
    Join Date: Oct 2010
    Old 10-31-2010 , 19:25   Re: [TF2] Fake Gifts
    Reply With Quote #10

    hi, can you make it stop spinning ?
    like SetEntityMoveType(Ammopack, MOVETYPE_NONE);
    but this doesn't work for me
    Tom_007 is offline
    Reply


    Thread Tools
    Display Modes

    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 01:42.


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