Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / [DBP] Shooting Engine

Author
Message
kaedroho
16
Years of Service
User Offline
Joined: 21st Aug 2007
Location: Oxford,UK
Posted: 22nd Oct 2008 00:25 Edited at: 14th Jul 2009 13:00
Original Post


You simply have to make a gun, position and rotate it and tell it to shoot using 'SE_FireGun(gunnumber)' and everything will be done for you. You can also use the new Projectiles system to make new types of projectile like rockets or grenades.


tested with DBP 7.0

It requires Cloggys D3D_Func and Sparky Collision.

D3D_Func: http://forum.thegamecreators.com/?m=forum_view&t=69221&b=5

Sparky: http://forum.thegamecreators.com/?m=forum_view&t=74762&b=5


NOTE: The free commands at the botton need to be changed to work with your engine. If you dont do this the system wont work.



Code:



The Download features 4 demos Compiled and with source code (commented).

Demo1 - Guns
Demo2 - Sound
Demo3 - Projectiles
Demo4 - Particles


Just Made a new demo. Demo5 - FPS

Download: https://forumfiles.thegamecreators.com/download/1801706




Download (4 Demos with source code):
https://forumfiles.thegamecreators.com/download/1801692


kaedroho
16
Years of Service
User Offline
Joined: 21st Aug 2007
Location: Oxford,UK
Posted: 23rd Oct 2008 17:59
Its unfinished.. im soon going to add guns, projectiles and projectile behaviours (like rocket, bullet, etc)

Games, Code, 3D Models and more! click here
kaedroho
16
Years of Service
User Offline
Joined: 21st Aug 2007
Location: Oxford,UK
Posted: 27th Oct 2008 19:23 Edited at: 27th Oct 2008 19:31
Ive now made it possible to create guns and custom projectiletypes. It handles pretty much everything such as, projectile movement, gun sounds and particle emitters. Ive just got a bit of polishing and testing to do then ill make a demo and release it here.

line count is now 281



Once ive finnished this i can start on my next code snippet, A new Character Controller for Dark Physics users.

Games, Code, 3D Models and more! click here
kaedroho
16
Years of Service
User Offline
Joined: 21st Aug 2007
Location: Oxford,UK
Posted: 27th Oct 2008 22:40 Edited at: 28th Oct 2008 15:09
Update is here!

You simply have to make a gun, position and rotate it and tell it to shoot using 'SE_FireGun(gunnumber)' and everything will be done for you. You can also use the new Projectiles system to make new types of projectile like rockets or grenades.


Improvements:

Projectiles can now have an object (like a rocket)
Guns
Sound
Particle Emitters (like smoke behind an object)
Projectile Life (for a little speed increse)


Code:



The Download features 4 demos Compiled and with source code (commented).

Demo1 - Guns
Demo2 - Sound
Demo3 - Projectiles
Demo4 - Particles



Demo 1:


Demo 4:



Download (4 Demos with source code):
http://files.filefront.com/Shooting+Engine2rar/;12177784;/fileinfo.html

Im going to start work on a new demo, The FPS Demo


Games, Code, 3D Models and more! click here
kaedroho
16
Years of Service
User Offline
Joined: 21st Aug 2007
Location: Oxford,UK
Posted: 28th Oct 2008 21:23 Edited at: 29th Oct 2008 01:38
New update to be released later today.

New Features:

Weapon Offseting - While making the FPS Demo ive discovered a problem, you can position and rotate the object to the camera but you cant offset it to make it appear to the right or left. So i added this feature.

Collision Feedback - Using a few simple functions you can find the position, normal, projectiletype and shooter of the projectile which was involved in a collision with an object.


EDIT: Here it is!




Ive Also finnished another demo, an FPS demo:


http://files.filefront.com/Demo5+FPSrar/;12188389;/fileinfo.html



if people start to express at least a little little interest i will write up all the functions, what they do and an explanation of their parameters and returnvalues. Maybe it will make this code snippet easier to understand.


Games, Code, 3D Models and more! click here
Vorg1
17
Years of Service
User Offline
Joined: 7th Dec 2006
Location: Seattle
Posted: 5th Nov 2008 16:48
This a pretty cool demo. Thanks


Vorg1

Check out Urban Soldier:Requiem
kaedroho
16
Years of Service
User Offline
Joined: 21st Aug 2007
Location: Oxford,UK
Posted: 10th Nov 2008 23:04
Thanks for the comment

This engine has now been put into one of our games, One, and a video of it showing what the shooting engine can do can be found on the following link:
http://www.youtube.com/watch?v=zu1TKPISsSI


Im now working on an Open Source FPS Engine to be released on this community. it will feature my Zones system, Shooting Engine and Lighting Engine. Were also thinking about realeasing code for skinned ragdolling in Dark Physics.


Games, Code, 3D Models and more! click here
kaedroho
16
Years of Service
User Offline
Joined: 21st Aug 2007
Location: Oxford,UK
Posted: 28th Nov 2008 18:13
Im now thinking about making my next code snippet, I could probly give skinned ragdolling in Dark Physics a go or make an Open Source FPS Engine. so if you have any ideas on what i sould make next, then please post them here and ill see what i can do.

kaedroho
16
Years of Service
User Offline
Joined: 21st Aug 2007
Location: Oxford,UK
Posted: 19th Dec 2008 17:12 Edited at: 19th Dec 2008 17:21
Im going to release version 3 soon which is the version used in UberEngine. It will bring animation support to the system. It will also support entitys, muzzlesmoke and muzzleflashes.

Xsnip3rX
17
Years of Service
User Offline
Joined: 20th Feb 2007
Location: Washington State
Posted: 10th Apr 2009 00:17
Open Source FPS.

kaedroho
16
Years of Service
User Offline
Joined: 21st Aug 2007
Location: Oxford,UK
Posted: 10th Apr 2009 01:46
Data
19
Years of Service
User Offline
Joined: 26th Nov 2004
Location: Winnipeg,Canada
Posted: 29th Apr 2009 00:27
are you still developing this? Because this is excellent

BMacZero
18
Years of Service
User Offline
Joined: 30th Dec 2005
Location: E:/ NA / USA
Posted: 29th Apr 2009 06:11
This is a great idea! Unfortunately, Code Snippets never gets very much traffic. You should put this in DBPro or WIP.

Quote: "Were also thinking about realeasing code for skinned ragdolling in Dark Physics."


Ooh! Please! *drools*



kaedroho
16
Years of Service
User Offline
Joined: 21st Aug 2007
Location: Oxford,UK
Posted: 29th Apr 2009 22:04
The Open Source FPS is coming along fine. I will make it into a fully flexible game engine with FPS modules in which you dont have to use.

The Dark Physics Ragdolling needs some very complicated character setup. I have worked out an algorithm to build a capsule around each limb. Although im not sure that many people will want this because it means that each part of every finger will be physical and could decrease FPS by quite alot. However, that seems well in the way of development.

A minimap system is also in Production. It is able to move, rotate and zoom on a map while keeping it in a rectangular viewport.

The Shooting Engine currently isnt in development, Ill start work on it again soon. When version 3 is ready, ill post about it in another board.

Thanks for the comments

BMacZero
18
Years of Service
User Offline
Joined: 30th Dec 2005
Location: E:/ NA / USA
Posted: 30th Apr 2009 00:11
Wow, you've sure been busy



Dark Master Ev
15
Years of Service
User Offline
Joined: 18th Nov 2008
Location: That is a very good question...
Posted: 30th Apr 2009 17:58
awsome
Dark Master Ev
15
Years of Service
User Offline
Joined: 18th Nov 2008
Location: That is a very good question...
Posted: 30th Apr 2009 17:58 Edited at: 30th Apr 2009 17:59
(sorry for double post)
Data
19
Years of Service
User Offline
Joined: 26th Nov 2004
Location: Winnipeg,Canada
Posted: 1st May 2009 06:36
great can't wait for the open source fps

kuljot
15
Years of Service
User Offline
Joined: 2nd Jan 2009
Location: sacramneto, ca united states
Posted: 21st May 2009 01:46
hey guys,
for some reason every time i try to run the demo it says cannot load image at line 13. anyone hvae a solution

Gateway GT5628 Quad Core Desktop Intel Core 2 Q6600 2.4GHz Quad Core 3072MB RAM / 500GB 7200 SATA II Hard drive DVD RW 18X multi dual NVIDIA GeForce 8500GT ....
kaedroho
16
Years of Service
User Offline
Joined: 21st Aug 2007
Location: Oxford,UK
Posted: 21st May 2009 01:48
kuljot
15
Years of Service
User Offline
Joined: 2nd Jan 2009
Location: sacramneto, ca united states
Posted: 21st May 2009 02:15
the code 2 shooting engine uplaoded to file fornt the oen that has a map and everything. http://files.filefront.com/Demo5+FPSrar/;12188389;/fileinfo.html
this one

Gateway GT5628 Quad Core Desktop Intel Core 2 Q6600 2.4GHz Quad Core 3072MB RAM / 500GB 7200 SATA II Hard drive DVD RW 18X multi dual NVIDIA GeForce 8500GT ....
kaedroho
16
Years of Service
User Offline
Joined: 21st Aug 2007
Location: Oxford,UK
Posted: 21st May 2009 02:17 Edited at: 21st May 2009 02:22
Alright, cheers. Ill take a look. there has been issues with filefront recently, maybe they copped up one of my zips.

EDIT: found the problem, you will have to download the first 4 demos (all in 1 zip) to get the missing media.

I mustve wanted to keep the zip size small.

Link: http://files.filefront.com/Shooting+Engine2rar/;12177784;/fileinfo.html

kuljot
15
Years of Service
User Offline
Joined: 2nd Jan 2009
Location: sacramneto, ca united states
Posted: 21st May 2009 04:26
ok thanks, very nice. i just wanted to ask so the shootign part just makes the shooting effects or will it also kill enimies. lets say i added a enemy would there be a easy way i could use your dll to kill enemies. also do you have a c omplete list of the commands your dll file has.

Gateway GT5628 Quad Core Desktop Intel Core 2 Q6600 2.4GHz Quad Core 3072MB RAM / 500GB 7200 SATA II Hard drive DVD RW 18X multi dual NVIDIA GeForce 8500GT ....
kaedroho
16
Years of Service
User Offline
Joined: 21st Aug 2007
Location: Oxford,UK
Posted: 21st May 2009 13:07
It isnt a dll.

Look in engine.dba and youll see all the functions and source.

kuljot
15
Years of Service
User Offline
Joined: 2nd Jan 2009
Location: sacramneto, ca united states
Posted: 22nd May 2009 01:20
Cloggys D3D_Func isnt that a dll. also is this already setup to kill enimies.

Gateway GT5628 Quad Core Desktop Intel Core 2 Q6600 2.4GHz Quad Core 3072MB RAM / 500GB 7200 SATA II Hard drive DVD RW 18X multi dual NVIDIA GeForce 8500GT ....
kaedroho
16
Years of Service
User Offline
Joined: 21st Aug 2007
Location: Oxford,UK
Posted: 22nd May 2009 01:23
No it isnt. As all engines are different when it comes to killing enemies, I decided just to add a collision system in. Look up how the decals are created in Demo 5 and youll see.

Xeridox
20
Years of Service
User Offline
Joined: 19th May 2003
Playing: Scrap Mechanic
Posted: 1st Jun 2009 22:17
Well, I don't know what the deal is, but I keep getting redirected to the filefront.com home page, whether I click your link or copy+paste to the address bar....could be that I'm just a dumba**, I don't know lol

Phenom - MP FPS WIP - With bot support, even online!
Intel Core 2 Duo Conroe / 2GB DDR2 system RAM / nVidia 9800 GX2
kaedroho
16
Years of Service
User Offline
Joined: 21st Aug 2007
Location: Oxford,UK
Posted: 1st Jun 2009 23:21 Edited at: 3rd Jun 2009 13:31
Filefront has decided to take my files down. one by one their just disappearing and I have no idea what the hell is happening. It started when they "shut down" but got saved in the last minute...


EDIT:

look, there were 16 files there a month ago. Now theres just 1:

http://hosted.filefront.com/kaedroho

I officially hate filefront because many of those files are not replacable.


Please expect Version 3 sometime next week. Ive recently got a new computer and im currently installing everything onto it. Ill make sure that Version 3 is finnished soon.

EDIT: Just like to announce that ill be making a whole load of FPS modules for TGC. All of course, open source.

It will start with the shooting engine and a minimap system which supports zooming, rotation and movement.


hookkshot
17
Years of Service
User Offline
Joined: 12th Apr 2007
Location: Adelaide, Aus
Posted: 15th Jun 2009 07:20
I think im gonna be keeping an eye on this

2.0Gh AM2 Processor, 9800GT, 2Gb Ram
dj blackdragon3710
19
Years of Service
User Offline
Joined: 5th Nov 2004
Location: In LaLa land
Posted: 27th Jun 2009 18:01
Yup, me too. Hope it gets updated sometime soon.

<<<<<Used to be "djblackdragon" with being registered in January, 2003, no matter what it says on the left<<<<<
kaedroho
16
Years of Service
User Offline
Joined: 21st Aug 2007
Location: Oxford,UK
Posted: 27th Jun 2009 20:21
Sorry, I've been working on BlitzTerrain a lot recently.

I will make sure this gets updated ASAP. I've got another feature to add into BlitzTerrain which will take about a week to add. Then ill start working on this again and hopefully have V3 out shortly after.

kaedroho
16
Years of Service
User Offline
Joined: 21st Aug 2007
Location: Oxford,UK
Posted: 13th Jul 2009 02:23 Edited at: 13th Jul 2009 02:24
I would just like to announce my next code.

An advanced muzzle flash system.

When making muzzle flashes, all the time people decide to make loads of plains and face them in all different directions to hope one of them will point towards the camera. This doesn't look very good. So using matrix algebra, I've came up with a solution which will create 1 plain, then rotate it the correct way to make it point directly at the camera. This is better on both speed and realism.


Fitz marc ade
17
Years of Service
User Offline
Joined: 1st Jan 2007
Location: Somewhere near the Milkyway...
Posted: 14th Jul 2009 04:46
Sounds good.

However i was interested in the demo downloads for your FPS Engine. Is there any chance you will be able to re-upload the demos for download?

BTW it looks very impressive from screen shots.



GMS
kaedroho
16
Years of Service
User Offline
Joined: 21st Aug 2007
Location: Oxford,UK
Posted: 14th Jul 2009 12:12
Yep,

I have got my old hard drive back now!

Attached is Shooting engine 2


Attachments

Login to view attachments
kaedroho
16
Years of Service
User Offline
Joined: 21st Aug 2007
Location: Oxford,UK
Posted: 14th Jul 2009 12:57
Attached is the FPS Demo


Attachments

Login to view attachments
Softwizz
14
Years of Service
User Offline
Joined: 14th May 2009
Location: U.K.
Posted: 14th Jul 2009 14:31
This is awesome thanks.
Also you didnt include the file 'strapline.png' in the demo5 download, I had to copy it over from the 'shootingengine2' download.

Nothing to see here, move along please.
kaedroho
16
Years of Service
User Offline
Joined: 21st Aug 2007
Location: Oxford,UK
Posted: 14th Jul 2009 18:31
Demo 5 is just an addon to the first 4 demos.


Softwizz
14
Years of Service
User Offline
Joined: 14th May 2009
Location: U.K.
Posted: 22nd Jul 2009 00:40 Edited at: 22nd Jul 2009 00:45
edited

Nothing to see here, move along please.

Login to post a reply

Server time is: 2024-04-19 02:15:50
Your offset time is: 2024-04-19 02:15:50