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

Grenade Trails (cs:s, SDKHooks)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Plugin ID:
3238
Plugin Version:
1.3
Plugin Category:
Fun Stuff
Plugin Game:
Counter-Strike: Source
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Adds trails to grenade like in HL2 DM
    Old 09-13-2012 , 13:33   Grenade Trails (cs:s, SDKHooks)
    Reply With Quote #1



    @Fredd original Grenade Trails is little bit outdated.

    Admin access "sm_grenade_trails" (admin flag "a" (reservation))
    Grenade Trails cvar


    Install:
    - Require SDKHooks
    - Download grenadetrails*.smx to your sourcemod plugins folder

    Compile plugin source code:
    - Require SDKHooks
    - Can't compile here using forum web-compiler !
    Attached Files
    File Type: smx grenadetrails130_clientpref.smx (7.1 KB, 2160 views)
    File Type: sp Get Plugin or Get Source (grenadetrails130_clientpref.sp - 1629 views - 8.0 KB)
    File Type: smx grenadetrails125.smx (5.0 KB, 1682 views)
    File Type: sp Get Plugin or Get Source (grenadetrails125.sp - 1184 views - 3.7 KB)

    Last edited by Bacardi; 10-16-2012 at 12:01. Reason: update
    Bacardi is offline
    plex
    Junior Member
    Join Date: Aug 2012
    Old 09-13-2012 , 14:10   Re: Grenade Trails (cs:s, UPDATED, SDKHooks)
    Reply With Quote #2

    screenshot please?
    plex is offline
    thetwistedpanda
    Good Little Panda
    Join Date: Sep 2008
    Old 09-13-2012 , 14:11   Re: Grenade Trails (cs:s, UPDATED, SDKHooks)
    Reply With Quote #3

    I'll do you one better plex. This magical thing called google had this for its first result: http://www.youtube.com/watch?v=D8_dg0BVLiE
    __________________
    thetwistedpanda is offline
    InB
    AlliedModders Donor
    Join Date: Aug 2012
    Location: Los Angeles
    Old 10-03-2012 , 23:32   Re: Grenade Trails (cs:s, UPDATED, SDKHooks)
    Reply With Quote #4

    Can you make it that if a player turn it on, he will only have it and no one eles?
    InB is offline
    shavit
    AlliedModders Donor
    Join Date: Dec 2011
    Location: Israel
    Old 10-04-2012 , 12:35   Re: Grenade Trails (cs:s, UPDATED, SDKHooks)
    Reply With Quote #5

    You even don't use SDKHooks -.-

    If you want to use SDKHooks for performance:
    PHP Code:
    public OnEntityCreated(entity, const String:classname[])
    {
        if(
    StrContains(classname"_projectile"false) != -1)
        {
            
    SDKHook(entitySDKHook_SpawnOnSpawn);
        }
    }

    public 
    OnSpawn(entity)
    {
        new 
    Handle:datapack INVALID_HANDLE,
            
    String:classname[64];
        
        
    GetEntityClassname(entityclassname64);
        
        
    CreateDataTimer(0.0projectiledatapackTIMER_FLAG_NO_MAPCHANGE);
        
    WritePackCell(datapackentity);
        
    WritePackString(datapackclassname);
        
    ResetPack(datapack);

    __________________
    retired

    Last edited by shavit; 10-04-2012 at 12:43.
    shavit is offline
    KyleS
    SourceMod Plugin Approver
    Join Date: Jul 2009
    Location: Segmentation Fault.
    Old 10-04-2012 , 12:41   Re: Grenade Trails (cs:s, UPDATED, SDKHooks)
    Reply With Quote #6

    Quote:
    Originally Posted by shavit View Post
    You even don't use SDKHooks -.-
    How else would you efficiently do it?
    KyleS is offline
    TnTSCS
    AlliedModders Donor
    Join Date: Oct 2010
    Location: Undisclosed...
    Old 10-04-2012 , 14:08   Re: Grenade Trails (cs:s, UPDATED, SDKHooks)
    Reply With Quote #7

    Quote:
    Originally Posted by shavit View Post
    You even don't use SDKHooks -.-
    OnEntityCreated is SDKHooks...

    PHP Code:
    /**
     * @brief When an entity is created
     *
     * @param        entity        Entity index
     * @param        classname    Class name
     * @noreturn
     */
    forward OnEntityCreated(entity, const String:classname[]); 
    Bacardi is just using one of a few ways to achieve the objective...
    __________________
    View my Plugins | Donate

    Last edited by TnTSCS; 10-04-2012 at 14:11.
    TnTSCS is offline
    Bacardi
    Veteran Member
    Join Date: Jan 2010
    Location: mom's basement
    Old 10-04-2012 , 15:03   Re: Grenade Trails (cs:s, UPDATED, SDKHooks)
    Reply With Quote #8

    fuuuuuuuuuuu, need look next clientpref. To get settings for each player.
    __________________
    Do not Private Message @me
    Bacardi is offline
    shavit
    AlliedModders Donor
    Join Date: Dec 2011
    Location: Israel
    Old 10-05-2012 , 13:02   Re: Grenade Trails (cs:s, UPDATED, SDKHooks)
    Reply With Quote #9

    Quote:
    Originally Posted by TnTSCS View Post
    OnEntityCreated is SDKHooks...

    PHP Code:
    /**
     * @brief When an entity is created
     *
     * @param        entity        Entity index
     * @param        classname    Class name
     * @noreturn
     */
    forward OnEntityCreated(entity, const String:classname[]); 
    Bacardi is just using one of a few ways to achieve the objective...
    I'm a fucking idiot
    __________________
    retired
    shavit is offline
    Bacardi
    Veteran Member
    Join Date: Jan 2010
    Location: mom's basement
    Old 10-16-2012 , 12:12   Re: Grenade Trails (cs:s, UPDATED, SDKHooks)
    Reply With Quote #10

    Quote:
    Originally Posted by InB View Post
    Can you make it that if a player turn it on, he will only have it and no one eles?
    UPDATED
    I released two different version. (Means, don't use both sametime !)

    grenadetrails125.smx
    - not have players own settings
    - simple, enable only to non-admins, only admin or everyone. Can filter bots out.

    grenadetrails130_clientpref.smx
    - Using SourceMod clientpref, players can set trails on/off from !settings
    - Have few more settings to restrict non-admins or admins to enable trails or using !settings (there is boring video)
    Bacardi 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 11:53.


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