Page 1 of 1

how to turn off the blue flash in the selection of weapons

Posted: 25 Apr 2013, 22:17
by alividerci
hmm althought i cant destroy blue flashscreen when i pickuped weapon(if i take box with armor i have not flash screen wtf)

Code: Select all

/** Pick up item
 *
 *	@param	_Player		The player who picked up the item
 *	@param	_Item		The item picked up by the player
 */
Void PickUpItem(CSmPlayer _Player, CSmItem _Item) {
	if (_Player == Null || _Item == Null) return;

	declare Tag for _Item = "";
	declare AnchorId for _Item = NullId;

	if (!ItemAnchors.existskey(AnchorId)) return;
	declare ItemAnchor <=> ItemAnchors[AnchorId];
	declare ItemSpawned for ItemAnchor = False;
	declare ItemNextSpawn for ItemAnchor = Now;
	ItemSpawned = False;
	if (C_Timers.existskey(Tag)) ItemNextSpawn = Now + C_Timers[Tag];

	switch (Tag) {
		case C_Item["Armor"]: {
		    _Player.ArmorMax += C_Item_ArmorMaxValue;
			_Player.Armor += C_Item_ArmorValue;
			//ItemNextSpawn = Now + C_Timers["Armor"];
			if (_Player.Armor > C_ArmorReductionStart) {
				declare NextArmorReduction for _Player = -1;
				NextArmorReduction = Now + C_ArmorReductionPeriod;
			}
		}
		case C_Item["Rocket"]: {
			PickUpWeapon(_Player, Tag);
		}
		case C_Item["Laser"]: {
			PickUpWeapon(_Player, Tag);
		}
		case C_Item["Nucleus"]: {
			PickUpWeapon(_Player, Tag);
		}
		case C_Item["Arrow"]: {
			PickUpWeapon(_Player, Tag);
		}
	}
        //it is off bluescreen but it works only for armor(not weapons)
	//AttachItemToPlayer(_Item, _Player);
	DestroyItem(_Item);
}
this function comback flashscreen

Code: Select all

SetPlayerAmmoMax(_Player, Weapon, AmmoMax[_Weapon]);
how it fix?

Re: how to turn off the blue flash in the selection of weapo

Posted: 26 Apr 2013, 12:07
by alividerci
anybody know?

Re: how to turn off the blue flash in the selection of weapo

Posted: 26 Apr 2013, 12:20
by steeffeen
first of all: chill out

and it's not possible because it's not written in the maniascript code but hardcoded as a game mechanic
you may suggest to nadeo that maniascript can deactivate it, but i don't see the need of it

Re: how to turn off the blue flash in the selection of weapo

Posted: 26 Apr 2013, 13:35
by alividerci
steeffeen wrote:first of all: chill out

and it's not possible because it's not written in the maniascript code but hardcoded as a game mechanic
you may suggest to nadeo that maniascript can deactivate it, but i don't see the need of it
but it seems annoying blue screen :oops:

Could I ask you for them to cut down this blue screen? :roll: