[Help] Super sprint | Loot | Rename
Hi,
I added supersprint to dev (http://forum.ragezone.com/f791/tutor...ed-dev-956661/ ). I did one modification, allow dev player to change the key:
Code:
//Frage: Add super speed for dev
//#ifndef FINAL_BUILD
if(gUserProfile.ProfileData.isDevAccount && InputMappingMngr->isPressed(r3dInputMappingMngr::KS_SUPERSPRINT))
accelaration *= 5.0f;
//#endif
Code:
KS_SUPERSPRINT, //Frage: Add super speed for dev
Code:
//Frage: Add super speed for dev
m_Mapping[KS_SUPERSPRINT] = KeyboardMapping(INPUTMAP_KEYBOARD, kbsRightAlt, "SUPER SPRINT", true);
The problem is, if the player is not a dev, he has this key (on the optioncontrolHUD). I wanna to remove it (hide it) if the player isn't a dev. I tryed with this on the r3dInputMappingMngr::r3dInputMappingMngr()
Code:
if(gUserProfile.ProfileData.isDevAccount>0)
Doesn't work.
Change SpawnProtection, if the player loot an item, that remove his spawnprotection.
//SOLVED Remove the "change name", "delete character" buttons if you have no character created.
Screen : Screenshot by Lightshot
Re: [Help] Super sprint | Loot | Rename
I don't understand 90% of it.
Re: [Help] Super sprint | Loot | Rename
Re: [Help] Super sprint | Loot | Rename
1st question:
Look how the Main menu (SWF File) gets the keys (probably under the Frontend.cpp). End check there isDevAccount.
2nd:
look at the E Pressing function, and remove the spawn prot. there.
3rd:
Something like this:
gfxMovie.Invoke("ctrl.visible", false);
Re: [Help] Super sprint | Loot | Rename
@AimZMMo
Quote:
Remove the "change name", "delete character" buttons if you have no character created.
Screen : Screenshot by Lightshot
Easy, have fla files from source flah?
ok, now open SurvivorsScreen.as
search
Code:
Survivors.LevelTitle.visible = false;
add
Code:
Survivors.ChangeName.visible = false;
Survivors.BtnDeleteSlot.visible = false;
Survivors.LastMap.visible = false;
Re: [Help] Super sprint | Loot | Rename
Problem 3 SOLVED
//Add some code on Original Flash Source ISS (RZ Release Version)\src\classes\warz\frontend\SurvivorsScreen
http://i.imgur.com/JCNNzd0.jpg
Thanks lukasccb, I didn't see your post, but we did the same thing :D
- - - Updated - - -
Quote:
Originally Posted by
lukasccb
@
AimZMMo
Easy, have fla files from source flah?
ok, now open SurvivorsScreen.as
search
Code:
Survivors.LevelTitle.visible = false;
add
Code:
Survivors.ChangeName.visible = false;
Survivors.BtnDeleteSlot.visible = false;
Survivors.LastMap.visible = false;
You forgot something, that won't work.
Code:
if (slot < 0 || slot >= api.Survivors.length)
{
return;
}
api.SelectedChar = slot;
var survivor:Survivor = api.Survivors[api.SelectedChar];
if (!survivor)
{
return;
}
Survivors.Inventory.visible = true;
Survivors.Skill_Tree.visible = true;
Survivors.ChangeOutfit.visible = true;
Survivors.BtnDeleteSlot.visible = true;
Survivors.ChangeName.visible = true;
Survivors.BtnLastMap.visible = true;
Survivors.LevelTitle.visible = true;
Survivors.SurvivedTitle.visible = true;
Survivors.KilledZombTitle.visible = true;
Survivors.KilledBandTitle.visible = true;
Survivors.KilledCivTitle.visible = true;
Survivors.AlignmentTitle.visible = true;
Survivors.LastMapTitle.visible = true;
Survivors["Slot" + String (api.SelectedChar + 1)].State = "active";
Survivors["Slot" + String (api.SelectedChar + 1)].gotoAndPlay("pressed");
Code:
public function DisplaySurvivor (slot:int)
{
if (api.Survivors.length == 0)
{
Survivors.CharStatus.visible = false;
Survivors.Level.text = "";
Survivors.Survived.text = "";
Survivors.KilledZomb.text = "";
Survivors.KilledBand.text = "";
Survivors.KilledCiv.text = "";
Survivors.Alignment.text = "";
Survivors.LastMap.text = "";
Survivors.CharName.text = "";
Survivors.Inventory.visible = false;
Survivors.Skill_Tree.visible = false;
Survivors.ChangeOutfit.visible = false;
Survivors.BtnDeleteSlot.visible = false;
Survivors.ChangeName.visible = false;
Survivors.BtnLastMap.visible = false;
Survivors.LevelTitle.visible = false;
Survivors.SurvivedTitle.visible = false;
Survivors.KilledZombTitle.visible = false;
Survivors.KilledBandTitle.visible = false;
Survivors.KilledCivTitle.visible = false;
Survivors.AlignmentTitle.visible = false;
Survivors.LastMapTitle.visible = false;
}