Jump to content

What code should I use to make an item have Shine?


Georgin

Recommended Posts

Hi, everybody! I'm just bringing you up to speed. I did a swap today and for a killstreak item that has glitter on it. After reading a bunch of information, I found an old article from 2015 where the author mentioned this code:

"VertexLitGeneric"
{
	"$basetexture"	"models\weapons\v_smg\v_smg"

	"$phong" "1"
	"$phongexponent" "25"
	"$phongboost" "5"	
	"$lightwarptexture" "models\lightwarps\weapon_lightwarp"
	"$phongfresnelranges"	"[.25 .5 1]"
	"$basemapalphaphongmask" "1"

	"$rimlight" "1"
	"$rimlightexponent" "3"	
	"$rimlightboost" ".25"

	"$glowcolor" "1"

	// Cloaking
	"$cloakPassEnabled" "1"
	"$sheenPassEnabled" "1"

	"$sheenmap" 		"cubemaps\cubemap_sheen001"
	"$sheenmapmask" 		"Effects\AnimatedSheen\animatedsheen0"
	"$sheenmaptint" 		"[ 1 1 1 ]"
	"$sheenmapmaskframe" 	"0"
	"$sheenindex" 		"0"

	"$yellow" "0"

	"Proxies"
	{
		"AnimatedWeaponSheen"
		{
			"animatedtexturevar" 		"$sheenmapmask"
			"animatedtextureframenumvar" 	"$sheenmapmaskframe"
			"animatedtextureframerate" 		"40"
		}
		"invis"
		{
		}
		"ModelGlowColor"
		{
			"resultVar" "$glowcolor"
		}
		"Equals"
		{
			"srcVar1"  "$glowcolor"
			"resultVar" "$selfillumtint"
		}
		"Equals"
		{
			"srcVar1"  "$glowcolor"
			"resultVar" "$color2"
		}
		"YellowLevel"
		{
			"resultVar" "$yellow"
		}
		"Multiply"
		{
			"srcVar1" "$color2"
			"srcVar2" "$yellow"
			"resultVar" "$color2"
		}
	}
}

As well as a few of these:

 

"$sheenmap" "cubemaps\cubemap_sheen001"

    "$sheenmapmask" "Effects\AnimatedSheen\animatedsheen0"
    "$sheenmaptint" "[ 1 1 1 ]"
    "$sheenmapmaskframe" "0"
    "$sheenindex" "0"

 

I want to ask what code to use and how to do everything correctly so that everything is displayed. I will be very grateful!

Link to comment
Share on other sites

Can we see pics? Sounds cool af, I'm assuming it's got phong shading on it but how so idk

  • Like 1
Link to comment
Share on other sites

42 minutes ago, Elian said:

Ты имеешь в виду, что хочешь модифицировать игру, чтобы косметический эффект серии убийств имел блеск?

In fact, if you pick up the code, you can manifest a sheen image. But most likely it will be seen only by us, because for other players it will be incomprehensible.

  • Like 1
Link to comment
Share on other sites

I don't see any items in your inventory that don't already have sheen maps? Maybe verify your game files if you can't see the sheens.

 

You can compare my edit of the crossing guard file to the original one to see what needs changed to add sheens to items that don't have maps https://gamebanana.com/mods/512326

  • Like 2
Link to comment
Share on other sites

What are you trying to apply a sheen on? All the weapons you have that have killstreak should just work

  • Like 1
Link to comment
Share on other sites

3 hours ago, Georgin said:

In fact, if you pick up the code, you can manifest a sheen image. But most likely it will be seen only by us, because for other players it will be incomprehensible.

I think he's asking how you make custom killstreak sheens. What I made out of this is:

"With specific code/mod, you can make a [custom] sheen [image]. It will only be seen by you and will not be seen by other players."

OP, I have never been able to find a guide on how to make custom killstreak sheens, but there is a user on Gamebanana who has made a huge set of them.

Sublog : Ansuz Jeran | Members (gamebanana.com)

Hope this helps!

 

edit: I'm not actually sure if the mods still work today. I had the pulsing one in my custom folder for years.

Edited by thebanditruby
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...