:: Home :: FAQ :: Search :: Memberlist :: Usergroups :: Register :: Profile :: Log in to check your private messages :: Log in ::
gun bug
Goto page Previous  1, 2
 
Post new topic   Reply to topic    www.tcpclan.net Forum Index -> -= Mods And So On =-
View previous topic :: View next topic  
Author Message
Xavious
Vae Victus


Joined: 13 Jul 2003
Posts: 2250

PostPosted: Wed Oct 20, 2004 10:16 pm    Post subject: Reply with quote

whats the big deal anwyas...i wud have thoght youd be happy to get more ammo
Back to top
View user's profile Send private message Send e-mail
}TCP{Wolf
Site Admin


Joined: 19 Dec 2002
Posts: 4646

PostPosted: Sun Oct 24, 2004 6:37 pm    Post subject: Reply with quote

UTF-10 from alpha 4 build and upwards will have this bug fixed - but it's only possible to fix it for UTeamWeapons, not any custom guns mod-crazy admins may include in their servers. Nice catch though, Cheiz will be mentioned for finding it...
_________________
-=]I AM GETTING TOO OLD FOR SUBTLETY[=-
Back to top
View user's profile Send private message Visit poster's website AIM Address
}TCP{Cheiz
}TCP{Member


Joined: 17 Aug 2003
Posts: 18

PostPosted: Mon Oct 25, 2004 2:34 pm    Post subject: Reply with quote

Cool! By the way, i made a little mistake:
}TCP{Cheiz wrote:
Twisted Evil That can be very mean when you throw it to someone which doesnt have asmd yet; he will get an asmd with 0 bullets and can not pickup a new one but only dead-body-asmds and ammo.

Dead-body-asmds also arent useful becaue you get 0 ammo from them also.
After the fix, is it still possible to throw away (and pick up) 0 ammo guns?
Back to top
View user's profile Send private message
Kobra
-=SnAkEbOy=-


Joined: 05 Sep 2004
Age: 34
Posts: 2418

PostPosted: Mon Oct 25, 2004 3:26 pm    Post subject: Reply with quote

well..
i dont really understand what is the meaning of "dead-body-guns"
with 0 ammo...

always when i got my own gun and pick up a "dead-body-gun"
i get more ammo then i got before...

i never saw a bug like that before Confused
Back to top
View user's profile Send private message
Taz
For Custom Title Contact Admin


Joined: 24 Sep 2003
Posts: 2837

PostPosted: Mon Oct 25, 2004 5:30 pm    Post subject: Reply with quote

you haventh played much :O

Last edited by Taz on Mon Oct 25, 2004 6:20 pm; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail
}TCP{Wolf
Site Admin


Joined: 19 Dec 2002
Posts: 4646

PostPosted: Mon Oct 25, 2004 6:11 pm    Post subject: Reply with quote

The original unfixed code works like this:

If you pick up a dropped gun, and you do not yet have this gun already, you get the gun you pick up and any ammo it has (which can be 0 if the player dropping dies right after firing his last shot or tosses the gun that moment).

If you pick up a dropped gun but you already HAVE the gun in your inventory, you get the default pickup amount of ammo added for that weapon class (which would be 20 ammo for asmds). That's what the code says in Weapon.uc::handlepickupquery(inventory Item). I even tested this on a FULL FLAK and I only got 10 ammo when picking it up, not 50 as it should have been.

The fix will always give you the correct amount of ammo on dropped guns now, but only if it is a UTeamWeapon (any standard Unreal Weapon). It is still possible to accidently or intentionally dropping guns with 0 ammo. This is after all not a bug, but a "feature". Remember my primary goal with UTF is patching and adding (mostly administrative) features, not changing original game-play behaviour. I might think of something optional some day...

_________________
-=]I AM GETTING TOO OLD FOR SUBTLETY[=-
Back to top
View user's profile Send private message Visit poster's website AIM Address
}TCP{Cheiz
}TCP{Member


Joined: 17 Aug 2003
Posts: 18

PostPosted: Mon Oct 25, 2004 11:08 pm    Post subject: Reply with quote

}TCP{Wolf wrote:
If you pick up a dropped gun but you already HAVE the gun in your inventory, you get the default pickup amount of ammo added for that weapon class (which would be 20 ammo for asmds). That's what the code says in Weapon.uc::handlepickupquery(inventory Item). I even tested this on a FULL FLAK and I only got 10 ammo when picking it up, not 50 as it should have been.


This is not 100% true. You only get that "default pickup amount" if you first got a weapon at the place the weapon is placed in a map. Try this: Drop 2 asmd guns one with 5 one with 12 bullets. If you have no ASMD and then first get the 5 bullet you have 5 ammo, then get the 12 bullet and you'll have 10 ammo, not 17 and not 25.

The general rule is:
When you get a gun you already have, it adds the same amount of ammo as the amount of ammo in the gun you picked up first.

(not necessary first after you respawned, but when you didnt have the gun)

BTW with a dead-body-gun i mean a gun which remains on the ground when someone died, and also a gun which is thrown away.


Last edited by }TCP{Cheiz on Mon Oct 25, 2004 11:12 pm; edited 1 time in total
Back to top
View user's profile Send private message
Kobra
-=SnAkEbOy=-


Joined: 05 Sep 2004
Age: 34
Posts: 2418

PostPosted: Mon Oct 25, 2004 11:11 pm    Post subject: Reply with quote

confusing Confused ...
Back to top
View user's profile Send private message
}TCP{Wolf
Site Admin


Joined: 19 Dec 2002
Posts: 4646

PostPosted: Tue Oct 26, 2004 11:47 am    Post subject: Reply with quote

Yea especially since that's not what the code says. There may be version differences or even differences between visible source and compiled. Just like the shieldbelt where the textbuffers are wrong too lol...

Anyway I'm still working this one out and in the end it will just give you the correct amount of ammo no matter what Razz

_________________
-=]I AM GETTING TOO OLD FOR SUBTLETY[=-
Back to top
View user's profile Send private message Visit poster's website AIM Address
Taz
For Custom Title Contact Admin


Joined: 24 Sep 2003
Posts: 2837

PostPosted: Tue Oct 26, 2004 2:19 pm    Post subject: Reply with quote

we'll see
Back to top
View user's profile Send private message Send e-mail
}TCP{Ramses
}TCP{Member


Joined: 02 Feb 2003
Posts: 3733

PostPosted: Tue Oct 26, 2004 2:35 pm    Post subject: Reply with quote

Have some faith Taz Cool
Back to top
View user's profile Send private message
Xavious
Vae Victus


Joined: 13 Jul 2003
Posts: 2250

PostPosted: Tue Oct 26, 2004 6:27 pm    Post subject: Reply with quote

yes have faith in the wolf...sure he'll manage it...just so long as all his time isnt taken up by all our qustions...
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    www.tcpclan.net Forum Index -> -= Mods And So On =- All times are GMT + 2 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum


Powered by phpBB © 2001, 2012 phpBB Group
Protected by Anti-Spam ACP
Customized by }TCP{Carnage