Page 1 of 1

UTComp capabilities

Posted: Thu Oct 23, 2008 12:41 pm
by omihaz
Hi

I talk with utcomp developer. He fix chat, but classes of weapon for ping corrector he don't change.
But you add some code

Code: Select all

if (CurrentWeapon.IsA('UTWeap_FlakCannon')) CurrentWeaponName = GetItemName(string(CurrentWeapon.Class)
If weapon use not standart class: utcomp3b5_flack, then GetItemName( string(CurrentWeapon.Class) get realname.

Re: UTComp capabilities

Posted: Thu Oct 23, 2008 1:31 pm
by Panther
Or, you can simply make use of the existing facilities and add the description to your weapon/item database.

Re: UTComp capabilities

Posted: Thu Oct 23, 2008 10:23 pm
by omihaz
Or, you can simply make use of the existing facilities and add the description to your weapon/item database.
Yes, but different version of utcomp use different classes. I must add new types always if new version utcomp released. :(

Re: UTComp capabilities

Posted: Thu Oct 23, 2008 11:14 pm
by Panther
The method you mention above is already how the weapon names are collected anyway, with the exception of the victim weapon. This was fixed in the current test version. The best solution is for the author of UTComp to stop including the version number in his class names. He probably does it due to concerns of version mismatches, but there's really not a lot of reason for people to load UTComp on their clients. Version mismatches only occur when a package is already loaded locally and differs from the version used on a server. Even if someone wanted to load it on their client they can always specify a different config profile to use.