Pickups after Death!
#9

Quote:
Originally Posted by Twisted_Insane
Посмотреть сообщение
Dude, I think you're a bit confused! xD
First of all, why 0?
PHP код:
new DeathPickups[MAX_DEATH_PICKUPS] = 0
Secondly, why random positions?
PHP код:
DeathPickups[stck] = CreatePickup(12741pPos[0]+random(5), pPos[1]+random(5), pPos[2]); 
I'm not confused, it's 0, because the array stocks contain no death pickups when gamemode starts. And as you see, in the loop, script checks the for free slots to place a new one. So then more pickups can be exist at the same time and it will track all of them.

Secondly, the random values are because in normal GTA San Andreas money pickups appear around the place where npcs die and I wanted to make something like that.

+ You said:

Quote:
Originally Posted by Twisted_Insane
Посмотреть сообщение
there should be a pickup near him
Reply


Messages In This Thread
Pickups after Death! - by Twisted_Insane - 16.02.2012, 15:43
Re: Pickups after Death! - by System64 - 16.02.2012, 15:56
Re: Pickups after Death! - by Nonameman - 16.02.2012, 16:05
Re: Pickups after Death! - by Twisted_Insane - 16.02.2012, 16:05
Re: Pickups after Death! - by Nonameman - 16.02.2012, 16:20
Re: Pickups after Death! - by Twisted_Insane - 16.02.2012, 18:06
Re: Pickups after Death! - by Nonameman - 16.02.2012, 18:26
Re: Pickups after Death! - by Twisted_Insane - 16.02.2012, 18:52
Re: Pickups after Death! - by Nonameman - 16.02.2012, 19:14
Re: Pickups after Death! - by Twisted_Insane - 16.02.2012, 19:30

Forum Jump:


Users browsing this thread: 1 Guest(s)