Hi! Welcome to the forum for Platinum Arts Sandbox Free 3D Game Maker. I currently have the forums locked as I am attempting to properly update them.

In the meantime please join the new Discord Server!

If you have any questions please e-mail me through the Platinum Arts website.

Coding weapons

Having issues not related to a specific Sandbox game mode? Get help here!
Please also read the rules for support when posting support requests.
Failure to comply with the forum rules may result in your topic being locked without resolution.
User avatar
Bigboss
Member
Member
Posts: 282
Joined: July 23rd, 2010, 1:35 pm
Name: Naked Snake
Contact:

Coding weapons

Post by Bigboss »

How would you code say,
a gun or a knife and have a Heads up display on the screen and shoot and everything???
Zombie map (Version 2) Image
Image
Want a user bar like this one? PM Leo
Image
owenisred
Member
Member
Posts: 452
Joined: August 9th, 2010, 9:33 am
Name: Owen

Re: Coding weapons

Post by owenisred »

waow good luck with that :)

seroiusly tho, would it not be easier copying bits from saurbraten, and changing the 3d model?
I'm taking modelling requests again - any models you want created,skinned or animated (or all 3) leave a post here:

viewtopic.php?f=9&t=2704&start=0

My tutorial site - still under construction, but lots of good stuff there:

http://pasandbox.webs.com/
User avatar
Bigboss
Member
Member
Posts: 282
Joined: July 23rd, 2010, 1:35 pm
Name: Naked Snake
Contact:

Re: Coding weapons

Post by Bigboss »

welll lets see
im gunna have about 20 different weapons in this game
all I would really need is how to code it and all to like 1 gun then do the rest and yes
I kno it takes 1 hr for 1 gun
Zombie map (Version 2) Image
Image
Want a user bar like this one? PM Leo
Image
User avatar
PizzaLover101
Member
Member
Posts: 1751
Joined: October 23rd, 2009, 1:33 pm
Name: NAME
IRC Username: DaItsicle
Location: By a computer
Contact:

Re: Coding weapons

Post by PizzaLover101 »

IDK how to do it, but this is what you need to do for 1 gun + enemies

get a player model, + the PM with all the weapons on it

Script the following actions: Pulling it out, putting it away, reloading, shooting, damage it does, health (you + enemies),enemies, places the enemies can go so they can chase you/shoot at you

Things for hud:
a .png pic file with bullet count and reloading
Health (optional)


Other things you might want to include:
How many weapons can you have at once?


Did i miss anything?
Project 1: Da Chest Collector [TBD]
Project 2: Tis a secret [End of summer] announcement June 22 2011
Project 3: An even bigger secret!

http://pizzagametime.tk/
http://forums.pizzagametime.tk/
User avatar
Bigboss
Member
Member
Posts: 282
Joined: July 23rd, 2010, 1:35 pm
Name: Naked Snake
Contact:

Re: Coding weapons

Post by Bigboss »

ok lets see if Magic is real...
LEO!!! (Hey it worked in Charmed:D)
Zombie map (Version 2) Image
Image
Want a user bar like this one? PM Leo
Image
User avatar
Leo_V117
Support Team
Support Team
Posts: 1640
Joined: February 16th, 2010, 8:00 pm
Name: Leo
IRC Username: Leo_V117
Location: That one place...
Contact:

Re: Coding weapons

Post by Leo_V117 »

Well... For starters you need a lot of knowledge with C++, You also need to know how to make 3D Placeholders (for weapons and whatnot), You then need to re-activate the weapons in Sandbox, You also need to compile it after you add the weapons. Then you need 2 Display units and the Icons can be whatever you want. I think you should leave it to those who know some C++ Like Hirato... Or myself, after I learn it.
User avatar
Bigboss
Member
Member
Posts: 282
Joined: July 23rd, 2010, 1:35 pm
Name: Naked Snake
Contact:

Re: Coding weapons

Post by Bigboss »

oh...
cool
wanna help :D?
Zombie map (Version 2) Image
Image
Want a user bar like this one? PM Leo
Image
User avatar
PizzaLover101
Member
Member
Posts: 1751
Joined: October 23rd, 2009, 1:33 pm
Name: NAME
IRC Username: DaItsicle
Location: By a computer
Contact:

Re: Coding weapons

Post by PizzaLover101 »

I don't think he shouldn't

viewtopic.php?f=10&t=797&p=21312#p21304
Project 1: Da Chest Collector [TBD]
Project 2: Tis a secret [End of summer] announcement June 22 2011
Project 3: An even bigger secret!

http://pizzagametime.tk/
http://forums.pizzagametime.tk/
User avatar
Leo_V117
Support Team
Support Team
Posts: 1640
Joined: February 16th, 2010, 8:00 pm
Name: Leo
IRC Username: Leo_V117
Location: That one place...
Contact:

Re: Coding weapons

Post by Leo_V117 »

PizzaLover101 wrote:I don't think he shouldn't

viewtopic.php?f=10&t=797&p=21312#p21304
What?
chocolatepie33
Support Team
Support Team
Posts: 2458
Joined: April 27th, 2010, 5:31 pm
IRC Username: CP

Re: Coding weapons

Post by chocolatepie33 »

WTF, Pizza? You just said you think he should (double negative)...
Julius wrote:Contribute to http://www.opengameart.org NOW!
Save the wiki!
Locked