[T1 Release] NEW weaponHud!

Pages : 1 [2] 3

Foodey
11-22-2002, 02:59 AM
Originally posted by random
oh and i dont really need a use for an armor icon
it just takes up extra space imho, some might though

Good idea, Im going to turn everything off, flaghud, itemhud aren't needed!$@$% fuck it, it only takes fps :cry:

KamaKAzii
11-22-2002, 05:18 AM
wtf v0rt, that just defeats the purpose of weaponhud (kinda)...

GiftOfTheGame
11-23-2002, 09:42 AM
http://www.cynic.ws/uploads/GiftWepHud.jpg

Heimdal
11-23-2002, 09:46 AM
so... how about releasing those gift? :o

HuMaNtOrCh
11-23-2002, 10:46 AM
hah thats super nice gift

T2-T1
11-23-2002, 01:15 PM
Originally posted by GiftOfTheGame
http://www.cynic.ws/uploads/GiftWepHud.jpg HAHA release those rock

Woohoo
11-23-2002, 04:53 PM
I don't understand why you need to use a timer to update the entire thing. For everything but the current gun's ammo when firing can be triggered through events.

PuwWuw
11-23-2002, 10:36 PM
Originally posted by Woohoo
I don't understand why you need to use a timer to update the entire thing. For everything but the current gun's ammo when firing can be triggered through events. easier, better chances of being compatible.

kalten
11-24-2002, 02:23 AM
http://www.novacula.net.nz/clanftp/kalten/pics/blah.bmp

cyclonite
11-24-2002, 03:02 AM
They are some damn nice icons people are making there. Please release them...

I especially think Kalten's icons are nice, a recolour of them would match my setup.

Originally posted by Woohoo
I don't understand why you need to use a timer to update the entire thing. For everything but the current gun's ammo when firing can be triggered through events.

Using events to update it becomes very messy. I have to rewrite change weapon, fire, drop pack, drop ammo, drop weapon etc and attach events to them. I think thats the least elegant way of doing it. Some script packs may have already done that, some haven't and that just adds to the compatibility headaches.
This script works basically the same way as AmmoHud but for all weapons. It updates for other weapons which aren't mounted because you may be running a drop ammo script etc.
I just don't see any other feasible way of doing it without needed pages and pages of code for a whole heap of different instances.
I admit I haven't fully optimised the script, but the way I did it was the easiest way I could think of.

·liquid·
11-24-2002, 03:09 AM
Yea, using loops is the easiest and most compatible way of doing it. And the most you will lose by doing it this way is only a couple fps, which you won't even notice missing. :) Heck, most ski scripts hurt fps worse than this script does.

SarcaStick
11-24-2002, 03:31 AM
cyclonite, can you recheck your code. I notice that when I equip with the elf it will briefly show when current weapon, and then go back to off mode icon.

cyclonite
11-24-2002, 04:51 AM
Thanks for that Sarca. Quick fix for it.
I'm busy atm, so I will just explain how to fix it, I will update the dloads later:

1) Open new_weaponHud.cs
2) Search for the following string:
else if ($NWH::MountedWeaponID == 24) { $NWH::MountedWeapon = "ELF gun"; }
3) Replace that string with the following:
else if ($NWH::MountedWeaponID == 24) { $NWH::MountedWeapon = "ELF Gun"; }

All done :D
It was just a simple spelling mistake, I types "gun" and not "Gun"

kalten
11-24-2002, 05:21 AM
cyc, what colour do you need? ill make some recolours of my icons now and like upload em later.

SarcaStick
11-24-2002, 06:45 AM
Originally posted by cyclonite
Thanks for that Sarca. Quick fix for it.
I'm busy atm, so I will just explain how to fix it, I will update the dloads later:

1) Open new_weaponHud.cs
2) Search for the following string:
else if ($NWH::MountedWeaponID == 24) { $NWH::MountedWeapon = "ELF gun"; }
3) Replace that string with the following:
else if ($NWH::MountedWeaponID == 24) { $NWH::MountedWeapon = "ELF Gun"; }

All done :D
It was just a simple spelling mistake, I types "gun" and not "Gun"


You rock bro!!! Quick as hell on that fix ;)

<3

edit: that didn't seem to fix it :huh:

SarcaStick
11-24-2002, 06:58 AM
OK, I see what it is. WoW!!! that is some of the clearest, well written code i've come across in any script i've ever read.

It seems that your BMP is named "Elf Gun"

Therefore it's just another case of mispelling.

I just changed line:

$NWH::WeaponList[7] = "Elf Gun";
to
$NWH::WeaponList[7] = "ELF Gun";

and renamed the BMP to ELF Gun.BMP

Everything is capitalized in the word ELF now, including the BMP.
Works fine now.

SarcaStick
11-24-2002, 07:26 AM
btw, I converted all of the colored icons that I did for presto to work with yours. Plus I added the turret, sensor jammer & inven station.

SarcaStick
11-24-2002, 07:56 AM
Originally posted by SarcaStick
btw, I converted all of the colored icons that I did for presto to work with yours. Plus I added the turret, sensor jammer & inven station.

edit: If I drop my pack, shouldn't it update and remove that icon? Maybe it was something I messed with.

random
11-24-2002, 12:52 PM
i havent opened tribes in what feels like ages
i'll try it out whenever i do

IcingDeath
11-24-2002, 01:27 PM
random just told me hes a cheater... just wanted you all to know!