|
Re: POPULACE or 3DGS?
[Re: Germanunkol]
#104846
02/28/07 14:40
02/28/07 14:40
|
Joined: Jun 2006
Posts: 2,640 Earth
Germanunkol
Expert
|
Expert
Joined: Jun 2006
Posts: 2,640
Earth
|
Define health, skill44; Define shield, skill45;
I've got a player that is created using MP_EntityCreate. He's got shield and health. When he's hit on one computer I want to reduce his health on all computers, by the same amount. That's why I tried:
MP_TrackSkill(player,MPUC_SKILL_44); //track shield and health... MP_TrackSkill(player,MPUC_SKILL_45);
But, for some reason, the health can change on one computer while it doesn't change on the other. I could send it manually, using a string... but I don't want to do that if there already is a function for it.
Help??
Micha
~"I never let school interfere with my education"~ -Mark Twain
|
|
|
Re: POPULACE or 3DGS?
[Re: Germanunkol]
#104847
02/28/07 17:15
02/28/07 17:15
|
Joined: Nov 2000
Posts: 1,534 hamburg
Samb
Serious User
|
Serious User
Joined: Nov 2000
Posts: 1,534
hamburg
|
@germanunkohl please look at my bomberman example game Quote:
2. MP_TrackSkill(pEnt, vEntitySkill); ist eine praktische Sache. Vorallem muss man folgendes beachten: In der Spielerfigur Aktion steht: MP_TrackSkill(my, skill1); ALLE Clienten können den Skill1 ändern, dieser wird dann an alle gesendet. Würde dort jedoch stehn: MP_TrackSkill(pEntity, skill1); Dann kann NUR der Spieler den Skill Verändern, welcher die Figur besitzt. Da nur auf dem PC des Spielers pEntity auf die eigene Figur verweißt. Wird dieser Skill nun vom Spieler verändert, dann wird er an alle anderen Spieler gesendet. Verändert wer anderes den Skill, dann ist dieser Skill nur bei demjenigen verändert.
or in short english: if you use MP_TrackSkill(player,MPUC_SKILL_44); then only the player can change the skill. but if you use MP_TrackSkill(my,MPUC_SKILL_44); everyone can change the skill of the entity.
|
|
|
Re: POPULACE or 3DGS?
[Re: Samb]
#104848
02/28/07 18:44
02/28/07 18:44
|
Joined: Jun 2006
Posts: 2,640 Earth
Germanunkol
Expert
|
Expert
Joined: Jun 2006
Posts: 2,640
Earth
|
Somehow I don't like the populace doc. The tool would be so much better if ECG supplied more info!... or did I just read over this? Thanks a lot, exactly what I need. I never thought of checking in your script, great Idea, i'll do that next time I have a question... thanks and happy brithday!! Micha
~"I never let school interfere with my education"~ -Mark Twain
|
|
|
Re: POPULACE or 3DGS?
[Re: Germanunkol]
#104849
02/28/07 19:09
02/28/07 19:09
|
Joined: Nov 2000
Posts: 1,534 hamburg
Samb
Serious User
|
Serious User
Joined: Nov 2000
Posts: 1,534
hamburg
|
Quote:
Somehow I don't like the populace doc. The tool would be so much better if ECG supplied more info!...
yes, but there is something useful in the doc. "Execute as much locally as possible a. Don’t send every frame of animation, rather send the animation state and let the local action determine the animation. b. Health c. Death & Destruction d. When an entity changes state, pass the state and let the local action execute the state specific code (i.e. track skills)"
so,modifying the health of another player isn't the best way to do this. why? well, maybe the player you are shooting at is on his computer 3 steps away from the position he is on your computer. that means that a guy with a slow internet connection could kill anybody with no problems. because the other player will "teleporting" their ways. they will stand still trough the lag.
oh, and thanks
- samb
|
|
|
|