Fuzion icon indicating copy to clipboard operation
Fuzion copied to clipboard

New knife models

Open adingy2 opened this issue 5 years ago • 17 comments

Can you please add the new knife models? I've added the new skins on my fork but i do not know how to add models

adingy2 avatar Jan 20 '20 05:01 adingy2

You have file names in first line before code, easy copy-paste. https://pastebin.com/EBKNgXTv

ghost avatar Jan 20 '20 07:01 ghost

hello @WilQ18 i have actually read your guide but after building it gives me errors

adingy2 avatar Jan 20 '20 12:01 adingy2

Post them?

ghost avatar Jan 20 '20 12:01 ghost

@WilQ18 a bit lower where you fix animations (replace where you fix ursus knife anims):

    else if ((szModel == "models/weapons/v_knife_ursus.mdl") ||
            (szModel == "models/weapons/v_knife_cord.mdl") ||
            (szModel == "models/weapons/v_knife_canis.mdl") ||
            (szModel == "models/weapons/v_knife_outdoor.mdl") ||
            (szModel == "models/weapons/v_knife_skeleton.mdl"))

Where do I exactly put these? I think this is the problem maybe I pasted this incorrectly

adingy2 avatar Jan 20 '20 12:01 adingy2

You just need use same fix as ursus for those 4 new knifes. Instead of "||" you can use 'or'.

ghost avatar Jan 20 '20 13:01 ghost

} else if (szModel == "models/weapons/v_knife_cord.mdl") { switch (m_nSequence) { case SEQUENCE_DEFAULT_DRAW: m_nSequence = Util::RandomInt(SEQUENCE_BUTTERFLY_DRAW, SEQUENCE_BUTTERFLY_DRAW2); break; case SEQUENCE_DEFAULT_LOOKAT01: m_nSequence = Util::RandomInt(SEQUENCE_BUTTERFLY_LOOKAT01, 14); break; default: m_nSequence++; }

Like this? @WilQ18

adingy2 avatar Jan 20 '20 14:01 adingy2

/home/wayne/Fuzion/src/Hacks/skinchanger.cpp: In function ‘void SkinChanger::SetViewModelSequence(const CRecvProxyData*, void*, void*)’: /home/wayne/Fuzion/src/Hacks/skinchanger.cpp:472:62: error: expected primary-expression before ‘||’ token else if (szModel == "models/weapons/v_knife_ursus.mdl") || ^~ CMakeFiles/Fuzion.dir/build.make:1406: recipe for target 'CMakeFiles/Fuzion.dir/src/Hacks/skinchanger.cpp.o' failed make[2]: *** [CMakeFiles/Fuzion.dir/src/Hacks/skinchanger.cpp.o] Error 1 make[2]: *** Waiting for unfinished jobs.... CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/Fuzion.dir/all' failed make[1]: *** [CMakeFiles/Fuzion.dir/all] Error 2 Makefile:83: recipe for target 'all' failed make: *** [all] Error 2

adingy2 avatar Jan 20 '20 15:01 adingy2

@WilQ18 I added the knife anims on skinchanger.cpp but it broke other anims such as usp, m4a4, etc.

adingy2 avatar Jan 22 '20 06:01 adingy2

Show full code how you added it.

ghost avatar Jan 22 '20 06:01 ghost

else if ((szModel == "models/weapons/v_knife_ursus.mdl"|| "models/weapons/v_knife_cord.mdl" || "models/weapons/v_knife_canis.mdl" || "models/weapons/v_knife_outdoor.mdl" || "models/weapons/v_knife_skeleton.mdl")) i used this because someone on discord told me to do this

adingy2 avatar Jan 22 '20 13:01 adingy2

else if ((szModel == "models/weapons/v_knife_ursus.mdl" || szModel == "models/weapons/v_knife_cord.mdl" || szModel == "models/weapons/v_knife_canis.mdl" || szModel == "models/weapons/v_knife_outdoor.mdl" || szModel == "models/weapons/v_knife_skeleton.mdl"))

Try this.

ghost avatar Jan 22 '20 13:01 ghost

Hello, I'm use Manjaro, how can I change files?

0AnyKey0 avatar Jan 23 '20 16:01 0AnyKey0

Visual Studio Code or any other text file editor.

ghost avatar Jan 23 '20 16:01 ghost

I don't know where the files are

0AnyKey0 avatar Jan 23 '20 16:01 0AnyKey0

I'm download from AUR

0AnyKey0 avatar Jan 23 '20 17:01 0AnyKey0

then download it using git

cheddar-cheeze avatar Jan 24 '20 14:01 cheddar-cheeze

I added new knives and other skins. This can be found in pull request.

OtakuLinux avatar Apr 06 '20 10:04 OtakuLinux