Posts: 1,718
Threads: 169
Joined: Jun 2010
i have made myself a little blood-on-the-knife mod. ya know, a little MS paint creation.
but i was wandering if it can be coded or modded so that the knife is clean untill you kill someone with it, then it would have blood all over it.
is that do-able?
Posts: 2,067
Threads: 11
Joined: Jun 2010
I think there might be a chance. If it is, I imagine that there'll have to be two skins for it. One that's clean, and one that isn't.
Posts: 1,718
Threads: 169
Joined: Jun 2010
oh yeah, i have both.
i think it would be something along the lines of, clean knife - swipe - kill - image change.
Posts: 502
Threads: 20
Joined: Dec 2010
a_slow_old_man is definitely the guy to hit up. He made a machete and a lightsaber mod for the knife. Both of which had idle animations. Maybe those animations are a good place to start?
/noob modeler here
Posts: 1,718
Threads: 169
Joined: Jun 2010
yeah, thats what i thought.
i have seen his modding thread, its epic. back to the point though.
i think it would be good to have this NOT as a mod but in the acctual game. a good update for 1.1.0.9 or something, in the future.
Posts: 3,780
Threads: 33
Joined: Jun 2010
Heh.
Okay, maybe not. But I bet you laughed.
Posts: 166
Threads: 3
Joined: Oct 2010
18 Jan 11, 05:08PM
(This post was last modified: 18 Jan 11, 05:12PM by Darkbee.)
How would the knife become clean? Upon death? Wiped clean?
P.S. We shouldn't make the game too gory, there are 5yr olds that play the game after all.
Posts: 1,436
Threads: 7
Joined: Jun 2010
Why, there's OMG!Ponies for them.
Posts: 1,718
Threads: 169
Joined: Jun 2010
(18 Jan 11, 05:08PM)Darkbee Wrote: How would the knife become clean? Upon death? Wiped clean?
probs when you switch to another weapon. maybe easyer to wipe it clean when you die.
Posts: 166
Threads: 3
Joined: Oct 2010
(18 Jan 11, 05:42PM)mykegregory Wrote: probs when you switch to another weapon. maybe easyer to wipe it clean when you die.
Switch weapon might be a good idea otherwise it's a use-once-change-once effect, which kinda loses impact. Suppose you knife 12 people before you die? Then you'll only get to the feel the satisfaction once.
Posts: 1,718
Threads: 169
Joined: Jun 2010
exactly what i thought. it could get more bloody with the amount of people you kill, but lets stick with the original idea untill an experianced modder posts.
i want to know what they recon.
Posts: 3,462
Threads: 72
Joined: Jun 2010
I'd say it would be pretty easy. All you would need to do is have a function to swap skins (probably not too hard) and then add a on kill switch to it.
Posts: 3,780
Threads: 33
Joined: Jun 2010
Even with swapping skins manually, a highly-disruptive "resetgl" is required for the change to take effect. You'd need to find a way for the hard-coded function to apply the change without resetting the graphics.
Posts: 1,718
Threads: 169
Joined: Jun 2010
is there a way to do that anyone?
Posts: 3,462
Threads: 72
Joined: Jun 2010
Yes, I believe you would need to preload the texture which wouldn't be too hard I would think. I just dont know how.
Posts: 3,780
Threads: 33
Joined: Jun 2010
Probably would be similar to /musicpreload I bet.
Posts: 951
Threads: 23
Joined: Jun 2010
isnt it always resetting the graphics V-man? I dont know all this stuff but why is it so disruptive? Does it make the game freeze for a sec or something?
Posts: 3,780
Threads: 33
Joined: Jun 2010
Go in-game.
Type /resetgl
tell me whether that's disruptive.
The way the game works right now, it can't change a weapon's skin without resetgl.
Posts: 3,462
Threads: 72
Joined: Jun 2010
Viper, the game loads all textures and required on map load. This includes player skins I believe. This means that if you just add one more texture to get loaded, your load time would be slower (by fractions of a millisecond probably), and you could use it without /resetgl.
:D
Posts: 239
Threads: 19
Joined: Jun 2010
Slow old man has a machete that is blood stained and if you don't do any thing for a little while, it wipes the blood but does not clean it, Your idea is cool though :)
|