1. Check out the Store if you're looking to Buy HL2RP or other schemas for your server. You can click Buy Schemas on the very top navigation bar to visit the store.
  2. Use the Plugin Center to easily subscribe to and auto-install Clockwork plugins to your server, or submit and share plugins you have developed.
  3. Having trouble setting up or developing with Clockwork? Check out the Wiki or post in the Support Forum for advice from fellow users.
Dismiss Notice
Hi Guest, you need a Steam account to register and post on these forums. Login with Steam at the top of the forums to get started!
Dismiss Notice
Hi Guest, do you want to buy HL2RP or another Clockwork schema? Visit the Cloud Sixteen Store to get started!

Other Does ITEM.protection actually do anything?

Discussion in 'Development' started by NoahtheBoah36™, Apr 16, 2018.

  1. NoahtheBoah36™

    NoahtheBoah36™ Clockwork Customer Active Member

    So, I tried messing around with Gr4ss's armor plugin but I found it just too complicated to work with to make my own clothes and all the links I found to the fallout/hl2 versions appear to be laden with virus links, so I have to ask, well, the title of this thread: does ITEM.protection do anything? A glance through the files in framework appears to suggest no, but I'm honestly not sure, and maybe somebody does know.
     
  2. Reagent

    Reagent The Reagent Menace Active Member

    [​IMG]
    dude chill it, what the fuck. just make a megathread w/ all your questions. don't need 3 threads daily.

    protection is introduced with the armor plugin, it's not from the framework.
    Code:
    if (clothes and clothes("protection") and clothes("protection") > 0) then
    damageInfo:ScaleDamage(1 - math.Clamp(clothes("protection"), 0, 1));
    
     
  3. NoahtheBoah36™

    NoahtheBoah36™ Clockwork Customer Active Member

    So, are you saying that if I put that code snippet in somewhere, it will do something? Or is that just showing the code that does it. And yeah, sorry about the three threads but, well, if I get a question and then get another question an hour later, I make a new thread. If I got like 15 at once I'd make a single thread, but an hour's enough time to forget about your old questions.
     
  4. RJ

    RJ no pay Legend Clockwork Customer

    Just to note; it looks like protection is supported in the HL2RP schema. I myself thought the framework supported but I guess that's only for HL2RP, I'm not sure about any other schemas though.
     
  5. Viz

    Viz Legend Clockwork Customer Active Member

    It's just showing the code that's already in the plugin.
     

Previous Readers (Total: 0)