logo
Main

Forums

Downloads

Unreal-Netiquette

Donate for Oldunreal:
Donate

borderline

Links to our wiki:
Wiki

Walkthrough

Links

Tutorials

Unreal Reference

Usermaps

borderline

Contact us:
Submit News
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic [227J_23] Item switch on mapchange (Read 769 times)
)Leela(-[otS]-
Full Member
***
Offline


Oldunreal member

Posts: 189
Location: Germany
Joined: May 31st, 2011
Gender: Female
[227J_23] Item switch on mapchange
Mar 22nd, 2015 at 11:46pm
Print Post  
Hi Smiley

Usually Unreal switchtes automatically to the next item in inventory if the current item runs out or is used up, like flares for example.
This does not work on mapchange. When an item was selected which can't travel, Unreal shows an empty slot after mapchange and you must first scroll the inventory to make it visible again.
Is there a way, that Unreal switches automatically to the next item if the last selected one doesn't exist anymore after mapchange?
  
Back to top
AIM  
IP Logged
 
Masterkent
Developer Team
Online



Posts: 1040
Location: Russia
Joined: Apr 5th, 2013
Gender: Male
Re: [227J_23] Item switch on mapchange
Reply #1 - Mar 3rd, 2018 at 7:01pm
Print Post  
Suggested resolution:

change the definition of function PlayerPawn.Possess from

Code
Select All
event TravelPostAccept()
{
	if ( Health <= 0 )
		Health = Default.Health;
} 


to

Code
Select All
event TravelPostAccept()
{
	if (Health <= 0)
		Health = Default.Health;
	if (SelectedItem == none)
		NextItem();
} 


[This modification has been tested. Modified PlayerPawn.uc will be submitted later along with other fixes].
  
Back to top
 
IP Logged
 
Smirftsch
Forum Administrator
*****
Offline



Posts: 7686
Location: at home
Joined: Apr 30th, 1998
Gender: Male
Re: [227J_23] Item switch on mapchange
Reply #2 - Mar 4th, 2018 at 8:32am
Print Post  
alright Smiley
  

Sometimes you have to lose a fight to win the war.
Back to top
WWWICQ  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint
Bookmarks: del.icio.us Digg Facebook Google Google+ Linked in reddit StumbleUpon Twitter Yahoo