SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Gamemode Scripts

Reply
 
Thread Tools Display Modes
Old 08/09/2013, 10:52 AM   #1
PeppeAC
Big Clucker
 
Join Date: Jun 2013
Location: Trani, Italy
Posts: 88
Reputation: 190
Default Soccer: Objects Physics Demo [advanced]

Soccer: Objects Physics Demo

I created this gamemode to show an advanced way to make a soccer game in SA-MP, with physics handled by my include "Objects Physics". I made only the basics to play soccer and not a team/point/match system.


Video:
[ame]http://www.youtube.com/watch?v=ISTebVTMYog[/ame]


Screenshots:
http://i41.tinypic.com/2502wif.png
http://i44.tinypic.com/s6sil3.png
http://i40.tinypic.com/fcqwxl.png


Required:
physics.inc by Me
modelsizes.inc by ******
foreach.inc by ******


Github:
https://github.com/uPeppe/Object-Phy...des/soccer.pwn


Features:
  • Press LMB to hold the ball.
  • Press RMB to shot/pass the ball.
  • Press ALT to lob the ball.
  • Press F to make a cross/high shot.
  • Hit the ball (press RMB/ALT/F) when it is at head height to make a header.
  • Power bar when you are holding RMB/ALT/F.

Last edited by PeppeAC; 09/02/2016 at 02:25 PM.
PeppeAC is offline   Reply With Quote
Old 08/09/2013, 12:23 PM   #2
Stanford
Gangsta
 
Stanford's Avatar
 
Join Date: Feb 2012
Posts: 984
Reputation: 84
Default Re: Soccer: Objects Physics Demo [advanced]

Thank you, I've understood how the include works because of your gamemode.

Keep up the good work, repped btw.

Regards,
Stanford
__________________
******: "That code compiles perfectly, but I can tell you now it won't make me a cup of tea."

******: "I've said this before. People think that MySQL is some simple plug-and-play magic bullet that you can use to just make your mode instantly better. They don't realise that the "L" in "SQL" means "language". So instead of programming PAWN, and using a bit of this mystery thing, you are now programming in two languages at once. If you spend months learning PAWN, you should spend the same time learning SQL, if not more - it is probably the more complex of the two languages, and not something that just gets bolted on to the side."
Stanford is offline   Reply With Quote
Old 08/09/2013, 12:38 PM   #3
Vrag
Big Clucker
 
Join Date: Jan 2013
Posts: 186
Reputation: -34
Default Re: Soccer: Objects Physics Demo [advanced]

I dob't get it how to take ball.But anyway nice GameMode I hope u don't mind if I make little update.
__________________
My works:
Los Angeles Ghetto Wars
Vrag is offline   Reply With Quote
Old 08/09/2013, 12:38 PM   #4
Tamer
High-roller
 
Tamer's Avatar
 
Join Date: Nov 2011
Location: Turkey
Posts: 1,101
Reputation: 172
Default Re: Soccer: Objects Physics Demo [advanced]

So true. The releases you have done helped me to understand how can we use these functions later. Thank you very much!
__________________
The three stages of truth:

- Ridicule.
- Violent opposition.
- Acceptance.


Quote:
The greatest hypnotist on the planet Earth is an oblong box in the corner of the room. It is constantly telling us what to believe is real. If you can persuade people that what they see with their eyes is what there is to see you've got them. you know because they'll laugh in your face of an explanation that portrays the biggest picture of what's happening... and they have.
Tamer is offline   Reply With Quote
Old 08/09/2013, 12:40 PM   #5
Vrag
Big Clucker
 
Join Date: Jan 2013
Posts: 186
Reputation: -34
Default Re: Soccer: Objects Physics Demo [advanced]

And where can I download it?
__________________
My works:
Los Angeles Ghetto Wars
Vrag is offline   Reply With Quote
Old 08/09/2013, 01:06 PM   #6
freddy smyth
High-roller
 
freddy smyth's Avatar
 
Join Date: Dec 2010
Location: Australia
Posts: 1,061
Reputation: 155
Default Re: Soccer: Objects Physics Demo [advanced]

Quote:
Originally Posted by Vrag View Post
And where can I download it?
https://github.com/uPeppe/Object-Phy...des/soccer.pwn

Download the pawn for it here, as stated and make sure you have those additional includes too.

I dunno why i'm repeating this. All of the information is right there. :P
__________________
freddy smyth is offline   Reply With Quote
Old 08/09/2013, 05:39 PM   #7
[HK]Ryder[AN]
High-roller
 
[HK]Ryder[AN]'s Avatar
 
Join Date: Jan 2012
Location: New Delhi, India
Posts: 1,196
Reputation: 362
Default Re: Soccer: Objects Physics Demo [advanced]

Very good. Your Object Physics include is also very good. Good for making a pool game.

You deserve a rep
__________________


[HK]Ryder[AN] is offline   Reply With Quote
Old 08/09/2013, 06:38 PM   #8
PeppeAC
Big Clucker
 
Join Date: Jun 2013
Location: Trani, Italy
Posts: 88
Reputation: 190
Default Re: Soccer: Objects Physics Demo [advanced]

Added video in the first post.
PeppeAC is offline   Reply With Quote
Old 08/09/2013, 07:08 PM   #9
Vrag
Big Clucker
 
Join Date: Jan 2013
Posts: 186
Reputation: -34
Default Re: Soccer: Objects Physics Demo [advanced]

Quote:
Originally Posted by PeppeAC View Post
Added video in the first post.
Can you make video tut on how to install the full GM?
__________________
My works:
Los Angeles Ghetto Wars
Vrag is offline   Reply With Quote
Old 08/09/2013, 07:56 PM   #10
Yves
High-roller
 
Yves's Avatar
 
Join Date: Feb 2013
Location: Area 51
Posts: 1,498
Reputation: 122
Default Re: Soccer: Objects Physics Demo [advanced]

Dam nice release mate very awsome keep this up. +rep
__________________
Yves is offline   Reply With Quote
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


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Include] [alpha] Objects Physics - Handle objects collisions and more. PeppeAC Includes 237 07/06/2019 09:37 PM
Crysis Physics Fun Mrkrabz Everything and Nothing 0 18/01/2011 11:04 AM


All times are GMT. The time now is 09:19 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.