Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by fairtrader. 12/05/23 14:22
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
6 registered members (AndrewAMD, Quad, soulman3, Ayumi, steyr, 3run), 631 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: Who killed who? and with what? #10737
10/22/02 06:53
10/22/02 06:53

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



quote:
Originally posted by Gabriel Reiser:
i can do the multiplayer code just fine, it's the tracking of who killed who that i can't figure out

Gabriel,

You say you aren't a good programmer, but your saying you can do Multiplayer code just fine.

Since multiplayer code is tough, I can't imagine how you can be a bad programmer, therefore I can't imagine how you can't use variables to store simple info.

I am not trying to bag on you, but it really seems like you are just alluding to us giving you code.

If you truly have Multiplayer code squared away, but are having trouble with variables. Look up variables in the manual. It's a quick read.

-Jeff

Re: Who killed who? and with what? #10738
10/22/02 07:29
10/22/02 07:29
Joined: Feb 2002
Posts: 278
NY, USA
V
Vol Offline
Member
Vol  Offline
Member
V

Joined: Feb 2002
Posts: 278
NY, USA
Before this thread turns into a useless argument let me offer this.

I know I *thought" my multiplayer code was squared away, and that I had it all figured out on a handful of occasions. Maybe that's just where he's at now. The first bump. There's more to come dude [Smile]

Re: Who killed who? and with what? #10739
10/23/02 05:08
10/23/02 05:08

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



ok, let me explain something here, I know how to store variables and stuff like that, it's the fuction of and entity killing another entity, how can I tell that THAT PLAYER INDEED KILLED THE OTHER PLAYER when there are, say for example, 32 players! Is there a fuction? a trace method? you guys totally missed the question here.

Re: Who killed who? and with what? #10740
10/23/02 05:24
10/23/02 05:24

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



When an attacker kills someone immediately have the attacker's action put their name on the kill list. The attacker's action can tell if the target was killed because the "trace" command to shoot the target will automatically set the "you" pointer to the target; immediately (before "you" gets reassigned) check if you.dead==true (or whatever.) Is that what you're asking?

Re: Who killed who? and with what? #10741
10/23/02 10:38
10/23/02 10:38

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



finally someone understands [Big Grin] yes, this is what i'm trying to understand. I didn't know if there was something built in or if it had to be scripted seperate or what

Re: Who killed who? and with what? #10742
10/25/02 03:10
10/25/02 03:10

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



In all fairness, until your post just before I answered your question you weren't being very clear about your problem. Nobody could answer your question because you weren't explaining it well.

Whatever. You're welcome.

Re: Who killed who? and with what? #10743
10/26/02 00:50
10/26/02 00:50

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



Hi,
Maybe you can give all players (bots) on the server an ID, just like in soldier of fortune 2 everyone has his own ID. So you can do something like this

if playerid1 killed playerid2 then
playerid1.kills:=playerid1.kills+1;
playerid2.deaths:=playerid2.deaths+1;

Sorry maybe the above thing is real stupid, thats because I dont know the 3dgs language [Frown] [Roll Eyes]

Re: Who killed who? and with what? #10744
10/26/02 04:19
10/26/02 04:19

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



If you want to be really clever you give everybody a number as mentioned but you assign them in powers of 2

guy 1=1
guy 2=2
guy 3=4
guy 4=8
etc

add the number of the guy to your "kills" each time you kill somebody

If your "kills" equals 17 (ex) you killed guy 5 and guy 1

PS kills is just a name for a variable I made up, not something built-in

Page 2 of 2 1 2

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