PDA

View Full Version : CoD2 Shaders - Custom weapon "camos" DX9 For my Mod.



BrandonDR
19th December 2024, 18:38
Hello, i am developing a singleplayer mod for Call of Duty 2, and I have come with an idea, I made a Pack-a-Punch script that works flawlessly for CoD2, and i was wondering if I could do some cool camos for the upgraded weapons and i stumbled upon with this amazing texture techinique, look how the upgraded weapon texture looks:

https://www.youtube.com/watch?v=Tro2mdhwxyw

It is important to mention that i did not make this shader, the thing is, I would like to add some custom camos for my mod but i do not know how to work with them, i do not understand how they work since i discovered them just today, if anyone could help me or collaborate with some cool shaders that would be amazing.

You can check my mod here: https://www.moddb.com/mods/the-mexican-revolution-mod

0RBohRgwLk
23rd December 2024, 02:48
the skin on the video is beautiful

reminds me this: https://vcodmods.com/view/animated-skin-neonwave

i don't use those because i think that distracts me and then i get less efficient to hit players :'(

0RBohRgwLk
23rd December 2024, 02:49
ah but i realize now, you can switch skin without changing file/restart game?! :eek:

0RBohRgwLk
23rd December 2024, 02:53
do you need another model file and somehow set the weapon model via gsc something like that?
I would really appreciate if you could explain

BrandonDR
23rd December 2024, 03:23
I would liken to have a variety of skins, i mean a set of several cool shaders ready to be appliead to whatever viewmodel_weapon, i tried to create my own shader but i failed since i do not understand at all how hlsl works.

0RBohRgwLk
25th December 2024, 17:00
brandon why don't u reply? u want to keep the solution only for you?

BrandonDR
26th December 2024, 02:34
what do you mean? i replyed just up above

0RBohRgwLk
26th December 2024, 20:05
i meant i didn't know u can change skin without restarting game, was wondering how, is it done using gsc? could you please show an example?

BrandonDR
26th December 2024, 20:58
of course, and yes indeed it is using gsc.

level.player takeallweapons();
level.player giveWeapon("super_ppsh");
level.player switchToWeapon("super_ppsh"); //notice that the super_ppsh is a new weapon. I mean you really will not swap the skin, you will swap to an entire new weapon.

IzNoGoD
26th December 2024, 23:19
I guess the question he's (trying to) ask is "how do you make such skins to begin with"

0RBohRgwLk
27th December 2024, 15:14
Ah ok thank you, i thought you did change the skin on the same weapon

regarding this type of skin, i did saw how it's made, at least for cod1, thanks to the vcodmods upload i sent earlier


But i see a smoothness issue, at least on cod1, it seems the animation speed (smoothness) relies on your ping

is it same for cod2? Any idea about how to change this? Would require client modification right?

i think it's same behavior with water
Do the client really needs to wait for the server to "update" to the "refresh" such stuff/shaders?

edit: you are making a singleplayer mod so i should have open a thread instead of using yours to post my questions, sorry