ZDaemon Forum Index ZDaemon
Client/Server DOOM
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

[ACS] TakeInventory and GiveInventory

 
Post new topic   Reply to topic    ZDaemon Forum Index -> Fixed Bugs
View previous topic :: View next topic  
Author Message
EarthQuake
Wicked Sick!


Joined: 02 Apr 2004
Location: Athens, Ohio. Dieblieber gonna getcha!

PostPosted: Thu Sep 17, 2009 6:04 am    Post subject: [ACS] TakeInventory and GiveInventory Reply with quote

The TakeInventory and GiveInventory ACS functions do not register on the client when playing online. The statusbar and heads-up display will not update properly when either is called, although the server does accept that the players' inventory has changed.

Also, the screen is supposed to flash in the same manner as if the player were actually picking up that item. For example, if a player can hold more cells, being given cells by GiveInventory should invoke the flash. In contrast, if a player is given a key which he or she already has, no flash should be seen. This is probably directly related to the issue at hand.

Here is a wad demonstrating the functions with a red keycard:
http://www.filesavr.com/inventory

The green switch will give the player a key and the red switch will remove it. Everything works fine on the client in single player mode. Tested with 1.08.08.
Back to top
View user's profile Send private message Send e-mail
Cybershark
Spamming!


Joined: 05 Jan 2005
Location: off the grid, but still fighting for the users!

PostPosted: Thu Sep 17, 2009 1:03 pm    Post subject: Re: [ACS] TakeInventory and GiveInventory Reply with quote

EarthQuake wrote:
Also, the screen is supposed to flash in the same manner as if the player were actually picking up that item. For example, if a player can hold more cells, being given cells by GiveInventory should invoke the flash.

Uh where? There is no flash when this occurs on Zdoom Confused
Back to top
View user's profile Send private message Visit poster's website
BestOfTheWorst
Unstoppable!


Joined: 02 Jun 2006

PostPosted: Sat Sep 19, 2009 1:04 pm    Post subject: Reply with quote

Quote:
The TakeInventory and GiveInventory ACS functions do not register on the client when playing online. The statusbar and heads-up display will not update properly when either is called, although the server does accept that the players' inventory has changed.


I'm not sure if there's any netmsgs in the current netprotocol to tell the clients about these changes.. and,

it should NOT flash. The ACS function directly changes your inventory, its not meant to fake a pickup. I dont know where you and Ronald got this idea, but no, it should not flash or give a pickup message Confused .. If you really want to fake a pickup, use the FadeRange , FadeTo, HudMessage (log) etc. acs functions to fake it, (which aren't supported in c/s yet though) Razz
Back to top
View user's profile Send private message
BestOfTheWorst
Unstoppable!


Joined: 02 Jun 2006

PostPosted: Tue Jul 19, 2011 4:32 pm    Post subject: Reply with quote

Fixed.
Code:
243. New netcode for ACS GiveInventory and TakeInventory.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    ZDaemon Forum Index -> Fixed Bugs All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group