Disable hats?

10 replies [Last post]
Lyberta
Lyberta's picture
User offline. Last seen 3 years 30 weeks ago. Offline
Joined: 2016-09-10
Posts: 177

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 4 years 10 weeks ago. Offline
Joined: 2016-06-26
Posts: 381

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 ^^

]{

╟───NW──────┼──────N╢

╓──────────────────╖ ╓──────────────────╖
⠀HP: ██████████ 1E9/1E91E9/1E9 ██████████ :MP
╙──────────────────╜ ╙──────────────────╜

Lyberta
Lyberta's picture
User offline. Last seen 3 years 30 weeks ago. Offline
Joined: 2016-09-10
Posts: 177

Nope, globally.

UltiMaxKom
UltiMaxKom's picture
User offline. Last seen 4 years 10 weeks ago. Offline
Joined: 2016-06-26
Posts: 381

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 ;/

]{

╟───NW──────┼──────N╢

╓──────────────────╖ ╓──────────────────╖
⠀HP: ██████████ 1E9/1E91E9/1E9 ██████████ :MP
╙──────────────────╜ ╙──────────────────╜

nemo
nemo's picture
User offline. Last seen 5 hours 58 min ago. Offline
Joined: 2009-01-28
Posts: 1861

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 6 hours 3 min ago. Offline
Joined: 2009-07-18
Posts: 562

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 5 hours 58 min ago. Offline
Joined: 2009-01-28
Posts: 1861

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 3 years 30 weeks ago. Offline
Joined: 2016-09-10
Posts: 177

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 4 years 10 weeks ago. Offline
Joined: 2016-06-26
Posts: 381

Right on Big Grin

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

╟───NW──────┼──────N╢

╓──────────────────╖ ╓──────────────────╖
⠀HP: ██████████ 1E9/1E91E9/1E9 ██████████ :MP
╙──────────────────╜ ╙──────────────────╜

Lyberta
Lyberta's picture
User offline. Last seen 3 years 30 weeks ago. Offline
Joined: 2016-09-10
Posts: 177

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 4 days 10 hours ago. Offline
Joined: 2012-06-20
Posts: 1301

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.

Hi, I am a Hedgewars developer. Smile

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