
Posts
517
Respect
161Add +1
Forum Rank
Zombie Enslaver
Primary Group
Scripter
Login Issues
Forgot password?Activate Issues
Account activation email not received? Wrong account activation email used?Other Problems?
Contact Support - Help Center Get help on the UGX Discord. Join it now!
There have been several attempts on dual wielding and the major issue with them was always the coop lag.
But where does that lag come from? Why is it creating lag.
But where does that lag come from? Why is it creating lag.
Let's say your ping is around 100ms and the game works at stable 60fps on host.
1) Player presses ADS button which is scripted in the script to play the fire animation. Since it's not done clientside nor the prediction can't be scripted it sends the message to the host that the ADS button was pressed.
-- 45ms later host receives the message
2) Host's script checks for player's ADSButtonPressed() and the function returns true. Host sends a message to the player to play the Fire animation.
-- 17ms delay because the game does it's logic then in next frame it sends info to clients
-- 45ms later client receives info from the host to play the fire animation
3) Player plays fire animation.
I might have made some mistakes in this but it should be enough to clear this up.
TL;DR The scripts are handled on host. Since real DW in WaW can only be achieved via scripting, you can't avoid the lag. Yeah, it will always work well for the host, but what if you're not the host?

But where does that lag come from? Why is it creating lag.

Appreciate the explanation, I understand it now. It's a shame it can't be done properly, but I guess some limitations are meant to not be overcomed. +1 For explaination.
![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
the lag is caused because the lowest wait time for GSC is .5 (i think it may be slightly lower but its close) which is still enough for the eyes to pick up on it. Since GSC is a server based language, the wait times and comands can and will be delayed based on you connection. COD has always had a ingame lag which is also applied to GSC ( http://www.youtube.com/watch?v=OcTf2kDuxrs ) The best language for duel weild is CSC, but there arent any animation functions in that language, or atleas no documentation of it so we have no idea. So what we have to do is tricks to the eye and hope for the best
just cuz it cant be done properly, does not mean that it cant be done in an efficent manner, it just requires equations of prediction and alot of delusions
![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
![]() | Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. |
So I've asked before, but I seem to have forgotten.
What makes a proper dual wield hard? By proper, I mean a dual wield where each gun fires separately with the push of right and left mouse button. Is it not possible to overwrite the aim to make it shoot instead? Or script a gun that when aiming down sights, doesn't change fov or anything, plays fire anim, and shoots a bullet?
Any response is appreciated, thanks.
its actually 0.05
theres a number of of 0.001 waits in my scripts, so no idea what hes on about this time
![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
![]() | Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. |
you can tell it to go as low as you want but it will always default to 0.05