Disable hats?

10 replies [Last post]
Lyberta
Lyberta's picture
User offline. Last seen 15 hours 9 min ago. Offline
Joined: 2016-09-10
Posts: 156

Hats remind me of Team Fortress 2 and I really really really hate TF2. Is it possible to disable hats so all hogs always wear no hat?

UltiMaxKom
UltiMaxKom's picture
User offline. Last seen 8 weeks 2 days ago. Offline
Joined: 2016-06-26
Posts: 310

Only in your scripts ???

Then i may provide a simple codes here :

local AllHogs = {}

function onGearAdd(gear)
   if GetGearType(gear) == gtHedgehog then
      table.insert(AllHogs, gear)
   end
end

function onGameStart()
   for k,v in pairs(AllHogs) do
      if GetHogHat(v) ~= "NoHat" then
         SetHogHat(v, "NoHat")
      end
   end
end

Hope can works and solve it ^^

]{

I love this quote :
[ "I'd rather be an optimist and a fool than a pessimist and right." -Albert Einstein ]

Lyberta
Lyberta's picture
User offline. Last seen 15 hours 9 min ago. Offline
Joined: 2016-09-10
Posts: 156

Nope, globally.

UltiMaxKom
UltiMaxKom's picture
User offline. Last seen 8 weeks 2 days ago. Offline
Joined: 2016-06-26
Posts: 310

So,,,
I Get The Ultimate Solutions for you about DISABLE EVERY HATS IN HW GLOBALLY...

How :
DELETE EVERY SINGLE HATS FOR HEDGEWARS IN YOUR COMPUTER !!!
Or :
REPLACE ALL THOSE HATS WITH "NoHat" OR SOMETHING YOU WOULD PREFER MORE !!!
IF not working, LAST ONE :
FORMAT ALL YOUR HARDISK IN YOUR COMPUTER AND YOUR FAMILY COMPUTER !!!

I guarantee 99% Works Perfectly and solve the Roots and the Ground of it,
Which AFAIK Will Works Globally, and every game you wanna play with will provide you full Privacy of TF2 Protections of Hats ( math.abs(math.sqrt(x^2) ) )

if none can,,, then idk what to do ;/

]{

I love this quote :
[ "I'd rather be an optimist and a fool than a pessimist and right." -Albert Einstein ]

nemo
nemo's picture
User offline. Last seen 12 hours 46 min ago. Offline
Joined: 2009-01-28
Posts: 1562

You can delete hats from your hats folder. I'm not totally sure you can safely remove Reserved subfolder and be sure to keep NoHat.png, but everything else can be erased.

--
Oh, what the heck. 1PLXzL1CBUD1kdEWqMrwNUfGrGiirV1WpH <= tip a hedgewars dev

sheepluva
sheepluva's picture
User offline. Last seen 1 week 4 days ago. Offline
Joined: 2009-07-18
Posts: 522

nemo allegedly wrote:

You can delete hats from your hats folder. I'm not totally sure you can safely remove Reserved subfolder and be sure to keep NoHat.png, but everything else can be erased.

Er, also the reserved Zombie-"Hat" might or might not be mandatory due to resurrection using it?

  sheepluva <- me  my code stats -> 
a Hedgewars Developer


   <- where I'm from  what I speak -> 

nemo
nemo's picture
User offline. Last seen 12 hours 46 min ago. Offline
Joined: 2009-01-28
Posts: 1562

Zombie is in the Reserved folder for that reason. It's the reason I was thinking he should hang on to that folder.
Would have to RTFS to see if failure to load the reserved Zombie would fallback to NoHat. It might, was just feeling lazy, and, eh, leave our Reserved hats alooooone! ☺

--
Oh, what the heck. 1PLXzL1CBUD1kdEWqMrwNUfGrGiirV1WpH <= tip a hedgewars dev

Lyberta
Lyberta's picture
User offline. Last seen 15 hours 9 min ago. Offline
Joined: 2016-09-10
Posts: 156

Alright, I think I'll delete most of the hats. Btw, there's a shitload of copyright infringement in that folder.

UltiMaxKom
UltiMaxKom's picture
User offline. Last seen 8 weeks 2 days ago. Offline
Joined: 2016-06-26
Posts: 310

Right on Big Grin

Btw, why you Hate TFT 2 C; ???

I love this quote :
[ "I'd rather be an optimist and a fool than a pessimist and right." -Albert Einstein ]

Lyberta
Lyberta's picture
User offline. Last seen 15 hours 9 min ago. Offline
Joined: 2016-09-10
Posts: 156

Because I invested thousands of hours making TF 2 maps and server side plugins and after that Valve added hats and started selling them.

TF2 made me realize that proprietary software is a criminal offense and free software is a solution.

Wuzzy
Wuzzy's picture
User offline. Last seen 2 weeks 2 days ago. Offline
Joined: 2012-06-20
Posts: 898

Lyberta allegedly wrote:
Btw, there's a shitload of copyright infringement in that folder.

This is a harsh accusation, and I strongly doubt there is ANY copyright infringement in the Hats folder or anywhere else in Hedgewars.
Please post proof for your claims.

If it is copyright infringement, please pinpoint the exact files which violate copyright, who is the original copyright holder and where to find the original find from which it was illegally (???) copied.

As far I can tell, EVERYTHING in Hedgewars falls under free software licenses (no exceptions), as everything was either created by the community specifically for Hedgewars or by the main developers or is based on Public Domain data.

Hedgewars has a history of being very strict in this regard. It would actually surprise me if anything which violates anyone's copyright has slipped through.

Copyright © 2004-2017 Hedgewars Project. All rights reserved. [ contact ]