|
|
|
Re: butterfingers crate [message #486087 is a reply to message #486081] |
Fri, 14 February 2014 08:41 |
Stallion
Messages: 222 Registered: April 2006
Karma: 0
|
Recruit |
|
|
Xpert wrote on Fri, 14 February 2014 01:51 | The original creator was probably back in 2003 with the first Dragonade in Black-Cell.
Why does it matter who made it lol?
|
Damn, that's a long time ago. I need several presets (for the enterer) to be disabled on zone entry and re-enabled on zone exit, and I was thinking if he could make that one that he could help me. Anyone wanna take a crack at it?
Level edit is my play ground
[Updated on: Fri, 14 February 2014 08:43] Report message to a moderator
|
|
|
Re: butterfingers crate [message #486089 is a reply to message #486079] |
Fri, 14 February 2014 08:51 |
|
danpaul88
Messages: 5795 Registered: June 2004 Location: England
Karma: 0
|
General (5 Stars) |
|
|
The problem you've got is that it's hard to give people a weapon and the correct amount of ammo unless there are powerups to grant that weapon (unless someone added a "grant weapon by preset name", I don't recall seeing it though), and you still have to fix the ammo count afterwards.
One way would be to do it might be something like this (at work right now so making this up as I go along);
On entry;
For each <weapon> in <weaponbag>
if <weapon> in <list_of_banned_weapons>
save <weapon.ammocount> to <cache>
set <weapon.ammocount> = 0
On exit;
For each <weapon,ammocount> pair in <cache>
set <player.weapon.ammocount> = <cache.weapon.ammocount>
Remember there are two ammo counters, the "loaded" ammo count and the "backpack" ammo count. Save, zero and restore both values.
[Updated on: Fri, 14 February 2014 08:54] Report message to a moderator
|
|
|