Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

What are you working on :


Recommended Posts

The pistol and arms are one model only.

What you can do is on Blender separate model from arms as two distinct models.

Thans in game start function attach gun to the hands bone by code, to switch gun , just remove pistol from 3D scene and attach by code another 3D pistol model.

Link to post
Share on other sites

@Shirck :

You will need a complete 3D art pack containing :

- different Weapons

- 3D model arms having animations (idle, fire , second fire, reload , precise aim) for each weapons as each weapon is specific.

This is not only coding.

 

 

If you know how to make animations, just buy or use some arms and create yourself animations for pistol, rifle ,granade etc ...

Link to post
Share on other sites

What you mean by setting ?

Like i said, you have just to attach the gun to the player hands by code.

And chaging weapon during game is just loading another model by code and attaching it to player hands.

( This could be some gameplay tutorial request : switch weapons ; i'll see if i can find an old basic attaching code)

Link to post
Share on other sites

Another concept is the world- and view-model: The view model contains the gun with hands attached to it. That's what the player sees in first person view. The world model is for third person view, it's just the gun that is being attached to the players hands in third person.

Link to post
Share on other sites

Could it be TPS or FPS, chaning weapon is same code, i really don't see the world or model view ?

Some FPS games keep keep an entire character model( not only arms ) and just place camera front of player head between arms, so you can switch TPS to FPS just changing camera position : above and behind player (TPS) or front of player head (FPS).

I'll see if i have time to produce such camera code also ?

 

TPS or FPS is just camera position and how to manage it, if you can program you can make any view type like behind shoulder and code the transition to some FPS aiming view. Anything is possible with camera independetly of wepons, player or whatever :)

After that you can make all weapons child fo camera or player model , you are not restricted to some way of doing, and there are lot of ways you can do it.

Or you can just make some pivot named Weapons_manager attached to player model and have all weapons and code management in ascript attached to that pivot like :

- switch_To_Gun

- switch_To_Rifle

etc ...

Link to post
Share on other sites

Im talking about replacing the autopistol with my own model an animations. I know how to change the viewmodel in fpsweapon.lua, but Im not sure how do go about everything else (Animations and such are already present)

Link to post
Share on other sites

It's all in the posts, just read them again smile.png

Switch to pistol and play pistol animations, switch to rifle and play rifle animations , that's all.

Post your weapons and animations, if you want us to take a look and make some basic weapon code changing.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Facebook Twitter Youtube Github Steam
×
×
  • Create New...