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

[CS:S] Soccer Ball


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Franc1sco
Veteran Member
Join Date: Oct 2010
Location: Spain (Madrid)
Plugin ID:
2730
Plugin Version:
v1.2
Plugin Category:
Fun Stuff
Plugin Game:
Counter-Strike: Source
Plugin Dependencies:
    Servers with this Plugin:
    3 
    Plugin Description:
    For play football on any map, you can spawn soccer balls.
    Old 12-25-2011 , 08:00   [CS:S] Soccer Ball
    Reply With Quote #1

    Curent Version: v1.2



    Description:

    For play football on any map, you can spawn soccer balls.



    Admin commands (ROOT):

    sm_ball - Spawn a soccer ball
    sm_noball - Delete all soccer balls


    Install:
    Unzip the model in cstrike/
    Put the .smx file in addons/sourcemod/plugins
    Cvars for a correct soccerball movement

    PHP Code:
    phys_pushscale 900
    phys_timescale 1
    sv_turbophysics 0 
    Big Thanks to Forlix for the soccer ball model

    Last version downloads: 375


    Donations (optional):

    If you apreciate my work, you can donate me via paypal or with a trade offer


    Download:

    Main repository
    Direct download
    Code changes
    __________________
    Veteran Coder -> Activity channel
    Coding on CS2 and taking paid and free jobs.

    Contact: Steam, Telegram or discord ( franug ).

    You like my work? +Rep in my steam profile comments or donate.


    Last edited by Franc1sco; 12-20-2015 at 08:27. Reason: update
    Franc1sco is offline
    Send a message via MSN to Franc1sco
    Groger
    Veteran Member
    Join Date: Oct 2009
    Location: Belgium
    Old 01-23-2012 , 08:12   Re: [CS:S] Soccer Ball
    Reply With Quote #2

    Currently the soccerball goes trough people, can someone change that?
    Groger is offline
    Franc1sco
    Veteran Member
    Join Date: Oct 2010
    Location: Spain (Madrid)
    Old 05-18-2012 , 16:56   Re: [CS:S] Soccer Ball
    Reply With Quote #3

    Quote:
    Originally Posted by Groger View Post
    Currently the soccerball goes trough people, can someone change that?
    Cvars for a correct soccerball movement

    PHP Code:
    phys_pushscale 900
    phys_timescale 1
    sv_turbophysics 0 
    Recomended put it in server.cfg
    __________________
    Veteran Coder -> Activity channel
    Coding on CS2 and taking paid and free jobs.

    Contact: Steam, Telegram or discord ( franug ).

    You like my work? +Rep in my steam profile comments or donate.

    Franc1sco is offline
    Send a message via MSN to Franc1sco
    St00ne
    Veteran Member
    Join Date: Jan 2011
    Location: Annecy - France
    Old 02-20-2013 , 05:21   Re: [CS:S] Soccer Ball
    Reply With Quote #4

    Hi Franc1sco,

    good to know you're back

    I'm getting an error when using sm_ball command, can you help me on that?

    Code:
    L 02/15/2013 - 17:32:23: SourceMod error session started
    L 02/15/2013 - 17:32:23: Info (map "cs_bikini") (file "errors_20130215.log")
    L 02/15/2013 - 17:32:23: [SM] Native "SetEntProp" reported: Property "m_usSolidFlags" not safe to access (entity 139/models/forlix/soccer/soccerball.mdl)
    L 02/15/2013 - 17:32:23: [SM] Displaying call stack trace for plugin "soccer_ball.smx":
    L 02/15/2013 - 17:32:23: [SM]   [0]  Line 52, /home/groups/alliedmodders/forums/files/9/4/2/7/7/97237.attach::Bola()
    L 02/15/2013 - 17:35:27: [SM] Native "SetEntProp" reported: Property "m_usSolidFlags" not safe to access (entity 139/models/forlix/soccer/soccerball.mdl)
    L 02/15/2013 - 17:35:27: [SM] Displaying call stack trace for plugin "soccer_ball.smx":
    L 02/15/2013 - 17:35:27: [SM]   [0]  Line 52, /home/groups/alliedmodders/forums/files/9/4/2/7/7/97237.attach::Bola()
    (I tried a chmod 755 on my sourcemod folder but it didn't change anything.)

    Using SM 1.4.7 MM:S 1.9.2, Linux server.
    __________________

    *** *** ***
    -My plugins-

    Last edited by St00ne; 02-20-2013 at 06:18.
    St00ne is offline
    Franc1sco
    Veteran Member
    Join Date: Oct 2010
    Location: Spain (Madrid)
    Old 02-20-2013 , 17:32   Re: [CS:S] Soccer Ball
    Reply With Quote #5

    Quote:
    Originally Posted by St00ne View Post
    Hi Franc1sco,

    good to know you're back

    I'm getting an error when using sm_ball command, can you help me on that?

    Code:
    L 02/15/2013 - 17:32:23: SourceMod error session started
    L 02/15/2013 - 17:32:23: Info (map "cs_bikini") (file "errors_20130215.log")
    L 02/15/2013 - 17:32:23: [SM] Native "SetEntProp" reported: Property "m_usSolidFlags" not safe to access (entity 139/models/forlix/soccer/soccerball.mdl)
    L 02/15/2013 - 17:32:23: [SM] Displaying call stack trace for plugin "soccer_ball.smx":
    L 02/15/2013 - 17:32:23: [SM]   [0]  Line 52, /home/groups/alliedmodders/forums/files/9/4/2/7/7/97237.attach::Bola()
    L 02/15/2013 - 17:35:27: [SM] Native "SetEntProp" reported: Property "m_usSolidFlags" not safe to access (entity 139/models/forlix/soccer/soccerball.mdl)
    L 02/15/2013 - 17:35:27: [SM] Displaying call stack trace for plugin "soccer_ball.smx":
    L 02/15/2013 - 17:35:27: [SM]   [0]  Line 52, /home/groups/alliedmodders/forums/files/9/4/2/7/7/97237.attach::Bola()
    (I tried a chmod 755 on my sourcemod folder but it didn't change anything.)

    Using SM 1.4.7 MM:S 1.9.2, Linux server.
    Ok fixed.

    New version v1.1

    -bugfixeds
    -code more clean


    I think that now is ready for approval
    __________________
    Veteran Coder -> Activity channel
    Coding on CS2 and taking paid and free jobs.

    Contact: Steam, Telegram or discord ( franug ).

    You like my work? +Rep in my steam profile comments or donate.

    Franc1sco is offline
    Send a message via MSN to Franc1sco
    St00ne
    Veteran Member
    Join Date: Jan 2011
    Location: Annecy - France
    Old 02-21-2013 , 16:10   Re: [CS:S] Soccer Ball v1.1
    Reply With Quote #6

    Thanks for the update.
    __________________

    *** *** ***
    -My plugins-
    St00ne is offline
    RedSword
    SourceMod Plugin Approver
    Join Date: Mar 2006
    Location: Quebec, Canada
    Old 03-06-2013 , 17:57   Re: [CS:S] Soccer Ball v1.1
    Reply With Quote #7

    Hi there,

    before approval, I think you should have a certain consistency in your plugin's phrases :
    • [SM_Franug-BalonDeFutbol] \x01You have created [...]
    • [SM_Soccer-Ball] \x01You have deleted [...]

    It's fine you put both in english, but you should do the same for the plugin tag... as it is it can only confuse people that doesn't know what a Balon de futbol estais.

    Same problem with "version del plugin". You could also remove the FCVAR_REPLICATED (as I told you in previous plugins I believe).

    Iirc, something I saw a lot in your plugins when writing in english is not making the difference between "to" and "for". I believe that when using "para" in front of a verb, you should translate this into "to", rather than "for". "For" should when used in front of determinants / nouns. AFAIB.


    Also, when creating an entity via CreateEntityByName; you should make sure it isn't equal to -1. This can happen when all entities 'slots' are being used.

    (optional) Also, rather than using exvel code, you should use berni's one; in the same API page you mentioned. You're doing in 2 loops something you can do in one.

    Also, rather than RemoveEdict(ent), you should use AcceptEntityInput(ent, "Kill"). This is way safer, as the entity is deleted at the end of the frame, rather than instantly; meaning if another plugin (in .dll I believe) has actions on it in the same frame, it can fail. This would also be corrected with berni's code.

    Red
    __________________
    My plugins :
    Red Maze
    Afk Bomb
    RAWR (per player/rounds Awp Restrict.)
    Kill Assist
    Be Medic

    You can also Donate if you appreciate my work

    Last edited by RedSword; 03-06-2013 at 18:07.
    RedSword is offline
    Franc1sco
    Veteran Member
    Join Date: Oct 2010
    Location: Spain (Madrid)
    Old 03-07-2013 , 03:24   Re: [CS:S] Soccer Ball v1.2
    Reply With Quote #8

    @RedSword

    All fixed except the loop that I will see this afternoon in my house
    __________________
    Veteran Coder -> Activity channel
    Coding on CS2 and taking paid and free jobs.

    Contact: Steam, Telegram or discord ( franug ).

    You like my work? +Rep in my steam profile comments or donate.

    Franc1sco is offline
    Send a message via MSN to Franc1sco
    erroler
    Member
    Join Date: Mar 2013
    Old 06-13-2013 , 19:40   Re: [CS:S] Soccer Ball v1.2
    Reply With Quote #9

    Could you possibly add a cvar to limit how much balls a person can spawn per round?
    erroler is offline
    St00ne
    Veteran Member
    Join Date: Jan 2011
    Location: Annecy - France
    Old 10-10-2013 , 08:51   Re: [CS:S] Soccer Ball v1.2
    Reply With Quote #10

    Hi,

    Just to say that I tested it and it works on CS:GO.

    Bye
    __________________

    *** *** ***
    -My plugins-
    St00ne 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 14:50.


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