Sorry for the delay; I just sent you a link to the beta.
About your HUD mod, I'll have to look at that another time. I haven't done many HUD mods but converting a HUD to ZScript basically means ditching SBARINFO completely.
private void ResetWeapons(PlayerPawn player)
{
DropItem drop = player.GetDropItems();
...
// If the player has any weapons in StartItem, set them here
string lastStartWeapon = ""; // to set default weapon
if (drop != null)
{
for (DropItem di = drop; di != null; di=di.Next)
{
if (di.Name == "None") { continue; }
let weptype = (class<weapon>)(di.Name);
if (weptype != null)
{
lastStartWeapon = di.Name;
player.A_SetInventory(di.Name, di.Amount);
}
}
}
// here the default weapon is selected (normally, "Pistol").
if (lastStartWeapon != "")
{
let weaponInInv = player.FindInventory(lastStartWeapon);
player.UseInventory(weaponInInv);
}
}
Users browsing this forum: Dinosaur_Nerd, Simple Pie [RSS] and 17 guests