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.

Newcomers DBPro Corner / Newbie help and info please

Author
Message
the angry programmer
14
Years of Service
User Offline
Joined: 19th Apr 2010
Location: lost in the code of DBP
Posted: 26th Apr 2010 06:28
hey i was just wondering, i just dwnloaded a free gun from TGC store, and want to put it into a game, if you played around with some stock files theres a premade map, how would i add this to the game?

i WILL make pigs fly!
/ragequit
chafari
Valued Member
18
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 26th Apr 2010 14:59
@the angry programmer
hey...don`t crash your laptop!!....I have understood that you want to add a gun to your game like a first person shooter.You can lock the object to the screen with command LOCK OBJECT ON...or you can position the gun in the same x,y,z of the camera and just move the gun a little bit ahead, and rotate the gun camera angle y.

Here is an example...cheers.



I'm not a grumpy grandpa
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 26th Apr 2010 15:25
the angry programmer:

As a 'newbie', please keep to the Newcomers board. The main DBPro board is for more advanced questions.

TDK

the angry programmer
14
Years of Service
User Offline
Joined: 19th Apr 2010
Location: lost in the code of DBP
Posted: 27th Apr 2010 01:48
thanks chafi, but how would i go by adding a custom gun?

i WILL make pigs fly!
/ragequit
chafari
Valued Member
18
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 27th Apr 2010 02:39
@the angry programmer
As I told you in first post.You have to potition your gun model in the same position x,y,z of the camera and move the gun ahead.In the example I send to you, you can see it.


cheers.

I'm not a grumpy grandpa
the angry programmer
14
Years of Service
User Offline
Joined: 19th Apr 2010
Location: lost in the code of DBP
Posted: 27th Apr 2010 06:23
chafari, so just use the modles name? i don't have to move it or anything?

i WILL make pigs fly!
/ragequit
chafari
Valued Member
18
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 27th Apr 2010 12:54 Edited at: 27th Apr 2010 12:56
if you load your model gun,and your gun is for example number 5 , you will have to position object 5,camera position x(),bla bla,blabla....
The example I post above show you how to do it.
If you want you can send me your gun an I will make the code for you.

Cheers.

I'm not a grumpy grandpa
Indicium
16
Years of Service
User Offline
Joined: 26th May 2008
Location:
Posted: 27th Apr 2010 21:35
Put the model in your project folder. Or in a directory such as "models".

Then


Rawwrr. Sig Fail.
Newcastle is awesome
the angry programmer
14
Years of Service
User Offline
Joined: 19th Apr 2010
Location: lost in the code of DBP
Posted: 27th Apr 2010 23:31
i still need help the file is DUAL_Elite (11502)
and i created a new project, guntest1 and copyed file into there, any idea please?

i WILL make pigs fly!
/ragequit

Login to post a reply

Server time is: 2024-11-23 16:47:34
Your offset time is: 2024-11-23 16:47:34