[Logo]
 
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
GREAT MEDIC IDEA!  XML
Forum Index -> Druids RPG Go to Page: Previous  1, 2
Author Message
Shadow-X

Rampage

Joined: 01/22/2006 13:46:46
Messages: 114
Offline

What i was say static is when you make your medic weapon that would make the client think it was a medic.Then thats when the cross hair would be put up if you get what im saying sorry long day at work....
BotFodder

Wicked Sick!
[Avatar]

Joined: 01/13/2006 15:23:41
Messages: 1239
Location: Florida
Offline

Shadow-X wrote:
But it can't be that hard since all the pets are a different color on the radar.Tell me what yall think  

Okay ... here's the deal with pets and radar:

Your client is told by the server very few things. As far as monsters are concerned, you're told:

1. If they are friendly
2. If they are yours

And really, that's all the radar needs to know about pets to do what it does.

With players, all you're told is where they are, and that they are something other than monsters or vehicles. You are given no other details.

I use the Futurama Prof. Farnsworth Skin: http://www.disastrousconsequences.com/dcforum/posts/list/1595.page
WM: (DC)BotFodder 170
MM: (DC)BotDoctor 141
AM: (DC)BotBooster 147
http://ericdives.com/ - My DC Newbie FAQ: http://tinyurl.com/lz229
Twitter: http://twitter.com/ericdives
[WWW] aim icon [MSN]
BotFodder

Wicked Sick!
[Avatar]

Joined: 01/13/2006 15:23:41
Messages: 1239
Location: Florida
Offline

Shadow-X wrote:
What i was say static is when you make your medic weapon that would make the client think it was a medic.Then thats when the cross hair would be put up if you get what im saying sorry long day at work.... 

I'm not sure I get what you're saying but ...

For the radar to be able to do something like give a player a different icon (cross rather than dot) you have to be able to somehow distinguish that they are, as we would desire it, a Medic. Best case I can come up with code that would make your icon (which is in the center) a plus if you were wielding a medic weapon. However, you don't have these details (in any kind of code form as far as I can tell) about the players around you. I haven't figured out yet how the client knows what textures to show you for a medic weapon, but it may not even involve your client knowing that it's a medic weapon - only what texture the weapon another player is holding should be.

Your client, as far as I can tell, doesn't even have ready access to something that can identify you as a "medic" (mind you I haven't looked at the level/stats/skills menu yet to see how it works - there may be a hint there I could use, but again, this would only apply to you and not anyone around you).

I use the Futurama Prof. Farnsworth Skin: http://www.disastrousconsequences.com/dcforum/posts/list/1595.page
WM: (DC)BotFodder 170
MM: (DC)BotDoctor 141
AM: (DC)BotBooster 147
http://ericdives.com/ - My DC Newbie FAQ: http://tinyurl.com/lz229
Twitter: http://twitter.com/ericdives
[WWW] aim icon [MSN]
Jschill



Joined: 07/30/2006 20:13:17
Messages: 29
Offline

if u just want the cross to show after u make the medic wepend would just haveing say a medic flack cannon mess up the codeing and have the person with the medic wep accual have a cross to or not?
BotFodder

Wicked Sick!
[Avatar]

Joined: 01/13/2006 15:23:41
Messages: 1239
Location: Florida
Offline

Jschill wrote:
if u just want the cross to show after u make the medic wepend would just haveing say a medic flack cannon mess up the codeing and have the person with the medic wep accual have a cross to or not? 

From an individual's "client" point of view, the only player in the game that they are aware of as having (or not having) a medic weapon is themselves. Everyone else, so far I can only guess, has a particular texture on a type of weapon, and I'm not even sure I can "query" what type the weapon is or what texture has been applied to it. Because of this, the only icon on the radar that will change is the client's own icon (the one in the middle).

Realize this means that though your client knows you have a medic weapon, no one else's client does. So you show up as just a dot to them.

Avoid any thoughts of "well if they 'make' one" ... we can't even tell what they have in their hands, much less if they've just made it.

Again, the server knows all, sees all. It only allows clients to see barely what they need to, and lets them "know" even less. But your client can draw pretty things on the screen (like the radar), and has to "know" certain things before the decision to make the icon a dot or a cross occurs. As of yet, I have no clue how to get this info to the client. But Kohan's found something that may help - we'll see when I get back to it.

The "code curious" should start their journey into the client/server world of UT2004 here:

http://wiki.beyondunreal.com/wiki/Introduction_To_Replication

You'll start to understand the pitfalls involved in coding a simple mod, and coding a full blown server mod.

I use the Futurama Prof. Farnsworth Skin: http://www.disastrousconsequences.com/dcforum/posts/list/1595.page
WM: (DC)BotFodder 170
MM: (DC)BotDoctor 141
AM: (DC)BotBooster 147
http://ericdives.com/ - My DC Newbie FAQ: http://tinyurl.com/lz229
Twitter: http://twitter.com/ericdives
[WWW] aim icon [MSN]
 
Forum Index -> Druids RPG Go to Page: Previous  1, 2
Go to: