NewsUnrealEdFilesModsFragBULiandri Archives
BeyondUnreal Forums

Go Back   BeyondUnreal Forums > Unreal Development > Coding

Reply
 
Thread Tools Display Modes
Old 20th Feb 2002, 08:11 PM   #1
Silver_Ibex
Registered User
 
Join Date: Feb. 27th, 2001
Location: Equestria
Posts: 654
Unhappy Clients and hosts see differently

I got the aimer to work client side; trouble is the host for some reason thinks it also needs to send its crosshairs to the clients.

This means whoever is playing as host still has their position given away by a visible laser crosshairs/aimer.

How do I stop the host from sending this information???
__________________
Infiltration 2.75 Extended 1.05 New Improved Realistic gun mod for UT99 that I highly recommend.

Last edited by Silver_Ibex; 22nd Feb 2002 at 06:22 PM.
Silver_Ibex is offline   Reply With Quote
Old 20th Feb 2002, 10:34 PM   #2
Magus
Registered User
 
Join Date: Oct. 7th, 2001
Posts: 69
Have you tried adding this to the default properties:

bOnlyOwnerSee=true
Magus is offline   Reply With Quote
Old 21st Feb 2002, 12:06 AM   #3
Silver_Ibex
Registered User
 
Join Date: Feb. 27th, 2001
Location: Equestria
Posts: 654
Sure I could do that and have already tried it, but it has to work while in third person view.
When bonlyownersee=true the object will only appear if you’re in first person view, that’s why your weapon mesh with the hands doesn’t hover in front of your body when you switch to behindview.

The problem here is the host sending unneeded info to the clients, it is telling the client it is spawning the sprite.

The clients aimer does not show up on the host, so that’s halfway complete, or fixed if you can afford a dedicated server, so the host never enters the match.

I already set the sprites “RemoteRole=none” in hopes that would solve the problem but that didn’t fix it
__________________
Infiltration 2.75 Extended 1.05 New Improved Realistic gun mod for UT99 that I highly recommend.
Silver_Ibex is offline   Reply With Quote
Old 21st Feb 2002, 11:47 AM   #4
navboy
Registered User
 
Join Date: Jan. 5th, 2001
Location: tornados, Wizard of Oz, 70's rock group, lots of native Americans, etc.
Posts: 340
“RemoteRole=none" or "RemoteRole=ROLE_None" ?
navboy is offline   Reply With Quote
Old 21st Feb 2002, 03:31 PM   #5
Silver_Ibex
Registered User
 
Join Date: Feb. 27th, 2001
Location: Equestria
Posts: 654
Thumbs up

Quote:
Spawning Within Simulated Functions
There are other interesting hidden behaviors that may not be immediately apparent. For example, because of the requirements that an actor be owned by a playerpawn at some point in its parent hierarchy, a function can only be replicated to a single player in the game. (No, making a player owned by another player will not work. Multicast function replication does not exist. You can try to get this behavior using simulated functions, but no data can be passed between the server and the client, (since they both originate on their local machine, and exist only on that local machine.) Or you can use replicated variables, which can and are replicated to all players in the game, assuming they are relevant to them.
If a spawn is performed in a simulated function (simulated functions are explained later), then multiple copies of the actor are spawned: the server, and each of the clients that the simulated function was run on. The server's version is normally then replicated to the client, so the client would see two versions. This would create strange behavior as the two became out of sync, and the client-spawned one could easily be mistaken for the 'official one' that for some reason, isn't having it's variables replicated.
So all I had to do was remove the simulated from the function and it would not send the info to the client
__________________
Infiltration 2.75 Extended 1.05 New Improved Realistic gun mod for UT99 that I highly recommend.
Silver_Ibex is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 03:25 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.

Copyright ©1998 - 2012, BeyondUnreal, Inc.
Privacy Policy | Terms of Use
Bandwidth provided by AtomicGamer