Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Feature requests and bug reports
Weapon sway?

rolevix
Registered User
Quote
2020-01-01 07:33:36

Hi!
I'm working with CCB so long, but i'm still don't know how i can realize Weapon Sway via mouse...
Any help?

Happy new year :)


just_in_case
Moderator
Quote
2020-01-01 12:04:28

You can play animation and shoot action at the same time on mouse press to mimic a weapon sway. or can use on proximity behavior with your weapon and then compare it using a variable on mouse press .

for example on mouse press play weapon sway animation and check in proximity with enemy if a variable shoot is true than deal damage to enemy and on mouse down set a variable shoot to true and after few seconds here the time will be according to the weapon sway animation time for example if you have 1 second of swaying animation then after 1000ms set variable shoot to false .

that way you can achieve a weapon sway on moue press.


rolevix
Registered User
Quote
2020-01-01 21:44:09

Not by press, by moving mouse :)
I think it doesn't possible :(


just_in_case
Moderator
Quote
2020-01-01 21:53:42

You can compare mouse on x-axis and then trigger the sway.

Something like that has been done by me for someone on the forum. in which you can rotate the turret using mouse.. You can use rotate an object using mouse to mimic sway maybe.


nrasool
Registered User
Quote
2020-01-02 17:09:14

There is good discussion on this thread: https://www.reddit.com/r/gamedev/comments/3m548h/techniques_for_weapon_sway_in_fps/


just_in_case
Moderator
Quote
2020-01-03 08:22:04

Maybe many of you had missed this action created by me here, it was burried under so many posts.

https://www.ambiera.com/forum.ph...

This action rotates an object using the mouse you can edit the action according to your requirements and then make it to work with weapon sway instead of rotation of object.

for direct link to the action go with the link below.
https://drive.google.com/file/d/...


rolevix
Registered User
Quote
2020-01-03 23:51:44

Thanks, this is good plugin, it didn't fix my problem, but i can use it in my projects

Still trying to find way to realize sway.


adteam43
Registered User
Quote
2021-07-05 09:15:11

Create an anim move "sway" with Blender when are idle.
Its very easy to eo this outside from copper cube


Robo
Guest
Quote
2021-07-05 12:00:00

You can try my animated FPS controllers if you like, they should help with both camera movement and hand movements:

https://www.ambiera.com/forum.php?t=8900&page=2


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Intern?tional" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact