UGX-Mods Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Facebook
Sign In with Twitch

[Script] LSAT Ammo Counter (+ Usable for other weapons)

HOT
broken avatar :(
Created 8 years ago
by Scobalula
0 Members and 1 Guest are viewing this topic.
12,018 views
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 30 December 2012
Last active: 9 months ago
Posts
577
Respect
Forum Rank
Zombie Enslaver
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
Signature
My preferred name is "xSanchez78".
Check me out here: www.steamcommunity.com/id/xSanchez78
×
alaurenc9's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
alaurenc9's Contact & Social LinksxSanchez78xSanchez78xSanchez78xSanchez78xSanchez78xSanchez78
Like i told you in pm before, it's all about the timing. You're fx-life time is prob too long ( causing two fx' to show up, and it looking laggy when you move around quickly ) I use 15m miliseconds, so 0.015 as life-time in fx-ed. And loop the fx with a realwait(0.01). It's not to do with the materials, its just the timing..
Yes I have tried this but RealWait is too imperfect due to the fact that it waits as many frames as it can before the amount of time elapsed is over the amount of time you entered into it, and with small amounts of times, it is really hard for it to be accurate.
I helped Scoba with FX, since he had issue of it flickering. Turned out he had set FX count 0 to 1. Maybe you have added random value as well, so it shows doubled, for example, 1 to 1?
No mine is just 1. After copying the material settings though, the fx did improve in terms of how it works. Before it would show like, lets say a digit changed from 3 to 2, it would show the 3 over the 2, as the 2 fx was finishing up. Now after changing the material stuff, it actually cancels the 2 but some how the fx is still doubling. Let me look into it a bit more.

OK so I put realWait to 0.01 and the fx time to 15 again, and this time it actually looks solid most likely because of the material type changes. I'm pretty sure they made the difference. But yeah now it looks pretty solid, so thank you all for the help.
Last Edit: June 04, 2016, 05:31:22 pm by alaurenc9
broken avatar :(
×
broken avatar :(
Location: 00persia
Date Registered: 20 December 2012
Last active: 2 years ago
Posts
66
Respect
Forum Rank
Rotting Walker
Primary Group
Member
×
nikfar1's Groups
nikfar1's Contact & Social Links
hi all
I export lsat  from maya to cod,but when I get this weapon, the game is crashed and jumped out and this massage appear:
ERROR: dobj for xmodel ..causing the 128 bones exceeded
can anyone help me?

broken avatar :(
×
broken avatar :(
OnionmanVere Bo21
Location: ieu dnt wnt 2 no
Date Registered: 27 September 2013
Last active: 1 year ago
Posts
1,864
Respect
Forum Rank
Zombie Destroyer
Primary Group
Community Mapper
My Groups
More
Personal Quote
ok
Signature
Aye mate you don't know me so y don't you shut tf up ok buddy :)

×
Scobalula's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Box Mappers Elite
Box Mappers Elite
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
Scobalula's Contact & Social Links
hi all
I export lsat  from maya to cod,but when I get this weapon, the game is crashed and jumped out and this massage appear:
ERROR: dobj for xmodel ..causing the 128 bones exceeded
can anyone help me?

Sounds like your character model has a lot of bones, I am using Player Models from Town (Suit and Hazmat) and haven't had this issue but I remember reading that the weapon model (viewmodel) + player model count towards this 128 Limit, what character models are you using?

EDIT: mean viewhands, not character model, lmao.
Last Edit: July 16, 2016, 06:44:00 pm by Scobalula
broken avatar :(
×
broken avatar :(
Location: 00persia
Date Registered: 20 December 2012
Last active: 2 years ago
Posts
66
Respect
Forum Rank
Rotting Walker
Primary Group
Member
×
nikfar1's Groups
nikfar1's Contact & Social Links
Sounds like your character model has a lot of bones, I am using Player Models from Town (Suit and Hazmat) and haven't had this issue but I remember reading that the weapon model (viewmodel) + player model count towards this 128 Limit, what character models are you using?

EDIT: mean viewhands, not character model, lmao.
thanks for replying
I am using default character( char_polonsky)
broken avatar :(
×
broken avatar :(
OnionmanVere Bo21
Location: ieu dnt wnt 2 no
Date Registered: 27 September 2013
Last active: 1 year ago
Posts
1,864
Respect
Forum Rank
Zombie Destroyer
Primary Group
Community Mapper
My Groups
More
Personal Quote
ok
×
Scobalula's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Box Mappers Elite
Box Mappers Elite
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
Scobalula's Contact & Social Links
thanks for replying
I am using default character( char_polonsky)

What about your viewhands?
broken avatar :(
×
broken avatar :(
Location: 00persia
Date Registered: 20 December 2012
Last active: 2 years ago
Posts
66
Respect
Forum Rank
Rotting Walker
Primary Group
Member
×
nikfar1's Groups
nikfar1's Contact & Social Links
What about your viewhands?
my viewhands in game is default but in maya is viewmodel_usa_hazmat_arms
I rigged my model in maya that you said
I tried to delete some of joint of gun that not important and it worked but I have not good anim in reloading
maya:




in game:

broken avatar :(
×
broken avatar :(
OnionmanVere Bo21
Location: ieu dnt wnt 2 no
Date Registered: 27 September 2013
Last active: 1 year ago
Posts
1,864
Respect
Forum Rank
Zombie Destroyer
Primary Group
Community Mapper
My Groups
More
Personal Quote
ok
×
Scobalula's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Box Mappers Elite
Box Mappers Elite
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
Scobalula's Contact & Social Links
my viewhands in game is default but in maya is viewmodel_usa_hazmat_arms
I rigged my model in maya that you said
I tried to delete some of joint of gun that not important and it worked but I have not good anim in reloading
maya:

(Image removed from quote.)


in game:

(Image removed from quote.)

That's weird, with the rig included + hazmat for me it comes in at only 91 joints in the scene, far from the 128 limit:



Run this script that the bottom where it says "MEL" in Maya and see what joint count is:

Code Snippet
Plaintext
SelectAllJoints;
string $stuff[] = `ls -sl`;

int $numbjoints = `size($stuff)`;

print("Number of Joints in the scene: "+ $numbjoints +"\n");

broken avatar :(
×
broken avatar :(
Location: 00persia
Date Registered: 20 December 2012
Last active: 2 years ago
Posts
66
Respect
Forum Rank
Rotting Walker
Primary Group
Member
×
nikfar1's Groups
nikfar1's Contact & Social Links
That's weird, with the rig included + hazmat for me it comes in at only 91 joints in the scene, far from the 128 limit:

Run this script that the bottom where it says "MEL" in Maya and see what joint count is:

Code Snippet
Plaintext
SelectAllJoints;
string $stuff[] = `ls -sl`;

int $numbjoints = `size($stuff)`;

print("Number of Joints in the scene: "+ $numbjoints +"\n");

(Image removed from quote.)
thanks for helping
Number of Joints in the scene: 91
yes,That's weird
broken avatar :(
×
broken avatar :(
Location: 00persia
Date Registered: 20 December 2012
Last active: 2 years ago
Posts
66
Respect
Forum Rank
Rotting Walker
Primary Group
Member
×
nikfar1's Groups
nikfar1's Contact & Social Links
finally I found my problem and fix this  ;)
thanks
broken avatar :(
×
broken avatar :(
OnionmanVere Bo21
Location: ieu dnt wnt 2 no
Date Registered: 27 September 2013
Last active: 1 year ago
Posts
1,864
Respect
Forum Rank
Zombie Destroyer
Primary Group
Community Mapper
My Groups
More
Personal Quote
ok
×
Scobalula's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Box Mappers Elite
Box Mappers Elite
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
Scobalula's Contact & Social Links
finally I found my problem and fix this  ;)
thanks

It would be great to know what you done to fix it in case others ran into the issue.
broken avatar :(
×
broken avatar :(
Location: 00persia
Date Registered: 20 December 2012
Last active: 2 years ago
Posts
66
Respect
Forum Rank
Rotting Walker
Primary Group
Member
×
nikfar1's Groups
nikfar1's Contact & Social Links
It would be great to know what you done to fix it in case others ran into the issue.
my worldmodel  in weapon file was same to viewmodel and I forgot to change it to worldmodel and for this reason I had more than 128 joint.

 
Loading ...