how can I change the armor max amount of the player?
Posted: Mon May 12, 2008 3:54
hey guys, I need some help!
I need to make two new kinds of armor, based on the Doom 3's armor shards and armor vests... the armor shards must give 5 units and the armor vests must give 50 units, and the total must be 125;
I'm trying to edit the max amount of armor that the player can carry... at this moment, it works pretty well when you pickup the new armor inventory itens, but if you type idfa or idkfa, the player receive 200 units of armor, and I need to make something to change this value to 125.. what can I do to change this?
obs: if someone wants to see the code, here it is:
[spoiler]ACTOR ArmorShard : BasicArmorBonus Replaces ArmorBonus
{
Radius 20
Height 16
Inventory.Pickupmessage "Armor Shard"
Inventory.PickupSound "misc/shard_pkup"
Armor.Saveamount 5
Armor.MaxSaveAmount 125
+COUNTITEM
-INVENTORY.ALWAYSPICKUP
States
{
Spawn:
ARMS A -1
Stop
}
}
ACTOR ArmorVest : BasicArmorBonus Replaces GreenArmor
{
Radius 20
Height 16
Inventory.Pickupmessage "Armor Vest"
Inventory.Icon "ARMRA0"
Inventory.PickupSound "misc/armor_pkup"
Armor.Saveamount 50
Armor.MaxSaveAmount 125
+COUNTITEM
-INVENTORY.ALWAYSPICKUP
States
{
Spawn:
ARMR A -1
Stop
}
}[/spoiler]
I need to make two new kinds of armor, based on the Doom 3's armor shards and armor vests... the armor shards must give 5 units and the armor vests must give 50 units, and the total must be 125;
I'm trying to edit the max amount of armor that the player can carry... at this moment, it works pretty well when you pickup the new armor inventory itens, but if you type idfa or idkfa, the player receive 200 units of armor, and I need to make something to change this value to 125.. what can I do to change this?
obs: if someone wants to see the code, here it is:
[spoiler]ACTOR ArmorShard : BasicArmorBonus Replaces ArmorBonus
{
Radius 20
Height 16
Inventory.Pickupmessage "Armor Shard"
Inventory.PickupSound "misc/shard_pkup"
Armor.Saveamount 5
Armor.MaxSaveAmount 125
+COUNTITEM
-INVENTORY.ALWAYSPICKUP
States
{
Spawn:
ARMS A -1
Stop
}
}
ACTOR ArmorVest : BasicArmorBonus Replaces GreenArmor
{
Radius 20
Height 16
Inventory.Pickupmessage "Armor Vest"
Inventory.Icon "ARMRA0"
Inventory.PickupSound "misc/armor_pkup"
Armor.Saveamount 50
Armor.MaxSaveAmount 125
+COUNTITEM
-INVENTORY.ALWAYSPICKUP
States
{
Spawn:
ARMR A -1
Stop
}
}[/spoiler]