Ads keep us online. Without them, we wouldn't exist. We don't have paywalls or sell mods - we never will. But every month we have large bills and running ads is our only way to cover them. Please consider unblocking us. Thank you from GameBanana <3

Material Proxy Discussion (and Help Board)

A Forum Thread for Counter-Strike: Source

Members see zero ads. Membership is 100% free

Before I get things started, I'm requesting very experienced users on GameBanana who are familiar with Valve's Material Proxy system.

https://developer.valvesoftware.com/wiki/Material_proxies_programming

I'm looking to utilize an "if-then" situation for determining if a certain frame is chosen from an RNG based proxy, then the output will result in $translucent for that frame number.
I'm also gonna have a $bumpframe line with that RNG proxy match whatever the $frame is after the RNG event is processed in-game.

If you need to know what RNG code I'm utilizing, I'm using [PRince_4] Sharma's "How to use "RNG" in Skins" tutorial.

If you want more information on what exactly I'm planning on doing with this, I'll list it below in as much detail as possible.

For my future mod postings, I'm planning on releasing every glove from CS:GO into CS:S. With this being said, some users find it more attractive to use "Sleeves" and some do not. With the RNG proxy system in place, I can have it where users have sleeves varying in patterns (as they do in CS:GO), or sometimes they'll be invisible so it'll just be the gloves at times, thus resulting in the appearance of being on T-Side in CS:GO (usually they don't have sleeves on certain maps).

TL:DR

I need an IF-THEN code template in valve's proxy format that is called AFTER the RNG proxy is initialized: 
IF resulting $frame from RNG proxy = (decided $frame #) THEN = $translucent 1
^ I'll be using multiple instances of this, preferred to have two instances of this line for me to work off of
IF $frame /= (not equal) # THEN $translucent is 0

ALSO
I need the line of proxy code that'll make $bumpframe = what the end result is of my RNG code. 
I may be able to figure this out on my own.

I'm only looking for a template of code to work off of that'll get me in the right direction. The rest will be finished by me. Your help will be mentioned in the future mod submission pages on GameBanana (if the code actually works 100% as I intend it to). If you need me to explain anything in further detail, I'll gladly reply with what you need to know. If there's anything I find unnecessary to explain, I will not disclose such information.

Replies

Sign up to access this!
  • [PRince_4] Sharma avatar
    [PRince_4] Sharma Joined 3y ago
    Online
    Home > Games > Half-Life 2
    IND Industry! Flag Affiliation: IND Industry!
    8,186 points Ranked 757th
    32 medals 1 legendary 5 rare
    • 30 submissions featured Medal icon
    • 10 submissions featured Medal icon
    • Received thanks 50 times Medal icon
    • Thanked 50 submitters Medal icon
    • 8-14 Entries! GameBanana’s Christmas Giveaway 2016 Medal icon
    • Returned 1000 times Medal icon
    [PRince_4] Sharma IND Industry! Flag
    Affiliation
    IND Industry!
    access_time 2mo edit 2mo
    The first thing that came to my mind is $Resultvar and $LessOrEqual.

    e.g.

    "$three"        "3"
    "$one"           "1"
    "$zero"          "0"
    "$Translucent"       "0" //It should turn to 1 Only when it's needed

    Proxies 
    {
             "LessOrEqual"
                    {
                            "srcVar1"      "$frame" //The Frame of the texture
                            "srcVar2"      "$three" //Is no. three
                            "resultvar"  "$Translucent" //The Transparency command
                            "greaterVar" "$one" //Turned to 1
                            "LessEqualVar"  "$zero" //else 0
                    }                          
    }
    Now i'm not sure if this i'll work since i clearly haven't tested or meddled with Proxies code.

    But you can try the similar way.

    It's easy to randomize certain things like sine,detailscale and lod.
    but this could be a way to check if the texture have certain frame loaded in game.
    • Helpful x 1
    • Interesting x 2
    Slicin' My Way 2 TOP! avatar
    Mantra
    Slicin' My Way 2 TOP!
    URL to post:

Embed

menu
Share banner
Image URL
HTML embed code
BB embed code
Markdown embed code

Announcement

Author

TheZombieDon (Trickii) avatar
TheZombieDon (Trickii) username pic Joined 1y ago
I'm sleeping
1,285 points Ranked 22549th
20 medals 1 legendary 4 rare
  • 30 submissions featured Medal icon
  • 10 submissions featured Medal icon
  • Returned 1000 times Medal icon
  • Reached 50 subscribers Medal icon
  • Received thanks 50 times Medal icon
  • Returned 100 times Medal icon
TheZombieDon (Trickii) avatar
TheZombieDon (Trickii)

Sign up to access this!
Sign up to access this!
Sign up to access this!

Game

Sign up to access this!

Category

Share

  • Share on Reddit
  • Share on Twitter
  • Share on Facebook
  • favorite 0
  • remove_red_eye 433
  • mode_comment 14
  • access_time 2mo

More from Submitter

menu

More Help Threads

bcp.crwdcntrl.net tracking pixel