Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[tutorial] add new skill fast pickup item

Junior Spellweaver
Joined
Jan 19, 2014
Messages
136
Reaction score
126
Optional >
skill ico
Code:
[COLOR=#333333]http[/COLOR]s://mega.nz/#!W0wyyQwS!2H0Ne6lNQOjNW88vbkhtmI4r9ihSPmMpyo2VEKfJtQA
Add in WARZ/Bin/Data/Menu/SkillIcons
In Warz.sln

Search:
Code:
if(bIsPrimaryInteraction && InputMappingMngr->isPressed(r3dInputMappingMngr::KS_INTERACT))
            {

Add above:
Code:
float tmp_time = (CurLoadout.Skills[CUserSkills::SKILL_Repair1]) ? 0.5f : 1.0f;

Seach all functions(2 functions):
Code:
hudActionUI->setProgress(int(ActionUI_pressedKeyTimer*100));

And Change for:
Code:
if (CurLoadout.Skills[CUserSkills::SKILL_Repair1])
                        hudActionUI->setProgress(int(ActionUI_pressedKeyTimer * 200));
                  else
                        hudActionUI->setProgress(int(ActionUI_pressedKeyTimer * 100));

Search all (2 functions):
Code:
if(ActionUI_pressedKeyTimer > 1.0f)


Change for
Code:
if(ActionUI_pressedKeyTimer [COLOR=#ff0000]> tmp_time[/COLOR])
 
Back
Top