AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [CS:S] Soccer Ball (https://forums.alliedmods.net/showthread.php?t=174783)

Franc1sco 12-25-2011 08:00

[CS:S] Soccer Ball
 
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

Groger 01-23-2012 08:12

Re: [CS:S] Soccer Ball
 
Currently the soccerball goes trough people, can someone change that? :)

Franc1sco 05-18-2012 16:56

Re: [CS:S] Soccer Ball
 
Quote:

Originally Posted by Groger (Post 1637061)
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

St00ne 02-20-2013 05:21

Re: [CS:S] Soccer Ball
 
Hi Franc1sco,

good to know you're back :mrgreen:

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.

Franc1sco 02-20-2013 17:32

Re: [CS:S] Soccer Ball
 
Quote:

Originally Posted by St00ne (Post 1898157)
Hi Franc1sco,

good to know you're back :mrgreen:

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

St00ne 02-21-2013 16:10

Re: [CS:S] Soccer Ball v1.1
 
Thanks for the update.

RedSword 03-06-2013 17:57

Re: [CS:S] Soccer Ball v1.1
 
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

Franc1sco 03-07-2013 03:24

Re: [CS:S] Soccer Ball v1.2
 
@RedSword

All fixed except the loop that I will see this afternoon in my house

erroler 06-13-2013 19:40

Re: [CS:S] Soccer Ball v1.2
 
Could you possibly add a cvar to limit how much balls a person can spawn per round?

St00ne 10-10-2013 08:51

Re: [CS:S] Soccer Ball v1.2
 
Hi,

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

Bye


All times are GMT -4. The time now is 13:23.

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