Vice City: Multiplayer

VC:MP Discussion => General Discussion => Topic started by: 4kUM45 on Apr 13, 2015, 11:23 AM

Title: no weapon pick up
Post by: 4kUM45 on Apr 13, 2015, 11:23 AM
Why 0.4 doesn't has weapons pick up, It's very annoying when you kill someone and there's any weapon pick up.
Title: Re: no weapon pick up
Post by: Stormeus on Apr 13, 2015, 12:49 PM
This is by design. It's up to individual servers to implement weapon pickups.
Title: Re: no weapon pick up
Post by: Gulk on Apr 13, 2015, 03:07 PM
Yeah, I wanted to script this but no idea :-[

I'd rather players hunt and kill for more ammo instead of spawning with 99999999999 ammo for every gun
Title: Re: no weapon pick up
Post by: Kratos_ on Apr 14, 2015, 05:46 AM

Quote from: Gulk on Apr 13, 2015, 03:07 PMYeah, I wanted to script this but no idea :-[
I'd rather players hunt and kill for more ammo instead of spawning with 99999999999 ammo for every gun

Well Yes . There should be a reason to kill others . :)

During Kill , You can try utilizing GetWeaponAtSlot( int weaponSlot ) to get the weapon at that slot & GetAmmoAtSlot( int weaponSlot ) to get the amount of ammunation at that slot of a particular player object . Although , I aint sure that whether these entities will get called at the instant when someone is killed . In case it's called then start creating pickups associated with each weapon with some separation of course .

Write a function to customize the weapons of that player who picks this weapon pickup . Remove the pickup if noone picked it . I'm feeling the need of something like AutoDestroyTimer for a pickup entity .
Title: Re: no weapon pick up
Post by: Gudio on Apr 14, 2015, 07:36 AM
Click me. (http://forum.vc-mp.org/?topic=479.msg3186#msg3186)