Raised This Month: $154 Target: $400
 38% 

[CSS] Following C4


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Mitchell
~lick~
Join Date: Mar 2010
Location: noitacoL:
Plugin ID:
3397
Plugin Version:
1.1.0
Plugin Category:
Fun Stuff
Plugin Game:
Counter-Strike: Source
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Makes the C4 Follow the planter, and if he dies then follows another unfortunate soul.
    Old 12-04-2012 , 20:59   [CSS] Following C4
    Reply With Quote #1

    The Following C4
    also known as a pet c4


    Description:
    This makes the C4 Follow your player around, its really amusing, it will follow the planter, when the planter dies then it will follow the closest player, until he dies.

    Cvars:
    Config is located in: cstrike/cfg/sourcemod/ folder
    sm_followingc4_auto_update - 1/0 (Enables automatic updating (has no effect if Updater is not installed))
    sm_c4model_version -:- plugin version

    Changelog:
    v1.1.0 (3/12/14) -:- Updated code, replaced loop, added suggestion from drifter. (98 views since last update)
    v1.0.2 (9/20/13) -:- Removed Updater and the SMLib include. (also uploaded to SM site.)
    v1.0.1 (12/8/12) -:- Updated Code (fixed the variables that were removed in the initial release.)
    v1.0.0 (12/4/12) -:- Initial Release
    Attached Files
    File Type: sp Get Plugin or Get Source (FollowingC4.sp - 295 views - 3.8 KB)
    __________________

    Last edited by Mitchell; 03-15-2014 at 00:32.
    Mitchell is offline
    ilga80
    Senior Member
    Join Date: Nov 2012
    Old 12-08-2012 , 14:22   Re: [CSS] Following C4
    Reply With Quote #2

    Please fix sp file
    plugin failed to compile:
    PHP Code:
    FollowingC4.sp(84) : warning 211possibly unintended assignment
    FollowingC4
    .sp(84) : error 022must be lvalue (non-constant)
    FollowingC4.sp(84) : warning 215expression has no effect
    FollowingC4
    .sp(84) : error 001expected token";"but found ")"
    FollowingC4.sp(84) : error 029invalid expressionassumed zero
    FollowingC4
    .sp(84) : fatal error 127too many error messages on one line 
    ilga80 is offline
    Mitchell
    ~lick~
    Join Date: Mar 2010
    Location: noitacoL:
    Old 12-08-2012 , 15:46   Re: [CSS] Following C4
    Reply With Quote #3

    Quote:
    Originally Posted by ilga80 View Post
    Please fix sp file
    plugin failed to compile:
    PHP Code:
    FollowingC4.sp(84) : warning 211possibly unintended assignment
    FollowingC4
    .sp(84) : error 022must be lvalue (non-constant)
    FollowingC4.sp(84) : warning 215expression has no effect
    FollowingC4
    .sp(84) : error 001expected token";"but found ")"
    FollowingC4.sp(84) : error 029invalid expressionassumed zero
    FollowingC4
    .sp(84) : fatal error 127too many error messages on one line 
    Not sure how you got that error output. But i did fix some other errors.
    __________________
    Mitchell is offline
    The End Is Near...
    Member
    Join Date: Dec 2012
    Location: Siberia
    Old 12-09-2012 , 01:08   Re: [CSS] Following C4
    Reply With Quote #4

    Content .sp and .smx different
    The End Is Near... is offline
    minimoney1
    SourceMod Donor
    Join Date: Dec 2010
    Old 12-09-2012 , 01:14   Re: [CSS] Following C4
    Reply With Quote #5

    Quote:
    Originally Posted by The End is Near... View Post
    Content .sp and .smx different
    Obviously...?
    SMX is the compiled binary of a .sp file.
    __________________
    Need help? PM me or add me on Steam.
    My Steam




    Quote:
    Originally Posted by Rp.KryptoNite View Post
    For some reason his Plugin never worked for me ,
    @credits were added
    im not stealing any plugins dude its my THING
    minimoney1 is offline
    Mitchell
    ~lick~
    Join Date: Mar 2010
    Location: noitacoL:
    Old 12-09-2012 , 01:25   Re: [CSS] Following C4
    Reply With Quote #6

    Quote:
    Originally Posted by The End is Near... View Post
    Content .sp and .smx different
    Not sure what your meaning by that statement?
    __________________
    Mitchell is offline
    The End Is Near...
    Member
    Join Date: Dec 2012
    Location: Siberia
    Old 12-09-2012 , 01:31   Re: [CSS] Following C4
    Reply With Quote #7

    When you use .smx appears file plugin.FollowingC4.cfg
    Contents:
    PHP Code:
    // This file was auto-generated by SourceMod (v1.4.7-dev)
    // ConVars for plugin "FollowingC4.smx"


    // Enables automatic updating (has no effect if Updater is not installed)
    // -
    // Default: "1"
    sm_followingc4_auto_update "1"

    // Model for C4 bomb.
    // -
    // Default: "models/weapons/w_c4_planted.mdl"
    sm_followingc4_model "models/weapons/w_c4_planted.mdl"

    // Size of the C4 Model.
    // -
    // Default: "1.0"
    // Minimum: "0.100000"
    // Maximum: "10.000000"
    sm_followingc4_size "5.0" 
    In .sp file is only sm_followingc4_auto_update
    Attached Thumbnails
    Click image for larger version

Name:	Plugin.jpg
Views:	171
Size:	31.8 KB
ID:	113023  

    Last edited by The End Is Near...; 12-09-2012 at 01:33.
    The End Is Near... is offline
    Mitchell
    ~lick~
    Join Date: Mar 2010
    Location: noitacoL:
    Old 12-09-2012 , 10:10   Re: [CSS] Following C4
    Reply With Quote #8

    Quote:
    Originally Posted by The End is Near... View Post
    When you use .smx appears file plugin.FollowingC4.cfg
    Contents:
    PHP Code:
    // This file was auto-generated by SourceMod (v1.4.7-dev)
    // ConVars for plugin "FollowingC4.smx"


    // Enables automatic updating (has no effect if Updater is not installed)
    // -
    // Default: "1"
    sm_followingc4_auto_update "1"

    // Model for C4 bomb.
    // -
    // Default: "models/weapons/w_c4_planted.mdl"
    sm_followingc4_model "models/weapons/w_c4_planted.mdl"

    // Size of the C4 Model.
    // -
    // Default: "1.0"
    // Minimum: "0.100000"
    // Maximum: "10.000000"
    sm_followingc4_size "5.0" 
    In .sp file is only sm_followingc4_auto_update
    You must be using an old version, just delete your cfg, i removed those cvars after the initial release. (i figured that you didnt really need them when i had another plugin that did the same thing)
    Those two cvars are actually from:
    https://forums.alliedmods.net/showthread.php?p=1821388
    __________________
    Mitchell is offline
    Marcus_Brown001
    SourceMod Donor
    Join Date: Nov 2012
    Location: Illinois, United States
    Old 12-16-2012 , 00:08   Re: [CSS] Following C4
    Reply With Quote #9

    This is a nice bug-free ( so far as I can tell ) plugin! Have never seen something like it before, but then again never thought I would need it It makes for some fun game-play though. Nice job!!
    Marcus_Brown001 is offline
    alongub
    Veteran Member
    Join Date: Aug 2009
    Location: Israel
    Old 02-19-2013 , 15:16   Re: [CSS] Following C4
    Reply With Quote #10

    Code:
    SetEntDataEnt2(C4Hostage, gLeaderOffset, FollowingPlayer);
    Should be SetEntPropEnt.

    Code:
    if(IsHostage(C4Hostage))
    {
    	AcceptEntityInput(C4Hostage, "Kill");
    }
    Shouldn't this be on round_end?

    Code:
    CreateConVar("sm_followingc4_version", PLUGIN_VERSION, "C4Model Version", FCVAR_DONTRECORD|FCVAR_NOTIFY);
    Move this to OnPluginStart.
    __________________
    alongub 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 05:40.


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