Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by EternallyCurious. 04/18/24 10:45
StartWeek not working as it should
by Zheka. 04/18/24 10:11
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
zorro 64bit command line support
by 7th_zorro. 04/15/24 09:36
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:48
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (SBGuy), 712 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, howardR, 11honza11, ccorrea, sakolin
19047 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 7 of 7 1 2 3 4 5 6 7
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 Offline
Expert
Germanunkol  Offline
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 Offline
Serious User
Samb  Offline
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 Offline
Expert
Germanunkol  Offline
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 Offline
Serious User
Samb  Offline
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

Page 7 of 7 1 2 3 4 5 6 7

Moderated by  HeelX, Spirit 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1