Gamestudio Links
Zorro Links
Newest Posts
Experiences with cTrader
by JeyKey II. 11/27/26 09:04
make a complaint
by EW_bytes. 11/26/26 23:00
FXCM => AVA Trade Plugin???
by Martin_HH. 11/25/26 21:59
No connection to MT4
by Martin_HH. 11/23/26 06:38
MinMax function on History t6 file
by LucasJoshua. 11/21/26 14:28
What are you working on?
by rayp. 11/20/26 18:10
contractUpdate() is filtering if >2 rows
by mistery. 11/09/26 12:06
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
0 registered members (), 9,273 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EvanTJ, rht, MaliceTheMaker, Haitao_Ren, JimSimons
19250 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
Who killed who? and with what? #10727
10/19/02 14:46
10/19/02 14:46

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



Hi guys,

This is for you extremely advanced guys.

Is there a way to track who killed who for say example a scoreboard.

Like you are running around with a mp5, you see a dude, you pump him full of lead, you get:
mykills += 1;

?????
Is there a way you can track who killed a player or an AI actor and give him a point for the scoreboard?

Re: Who killed who? and with what? #10728
10/20/02 06:36
10/20/02 06:36

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



i know someone has attempted this atleast at some point! I mean c'mon, it's the basis for a 1st person multiplayer shooter.

Re: Who killed who? and with what? #10729
10/20/02 08:10
10/20/02 08:10

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



You could have a certain ammount of strings for each player and enter the data in them... then do a if statement to see what weapon was used.

Re: Who killed who? and with what? #10730
10/20/02 08:18
10/20/02 08:18

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



that is pretty easy but u would probably not use mykills just assign each player a synonym (probably screen name) set a skill then add to it , for weapon assign each weapon a number and then simply set one of the persons skill to that number then display a string it is very easy

Re: Who killed who? and with what? #10731
10/20/02 08:44
10/20/02 08:44

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



You could use an array for each player. And in that array have an index for each player.

So for 4 players you could have:

My_Kills[4] = 0,0,0,0;

And if a player kills player 4 you could do something like:

if (Player4_Killed == True){
kill_indice = 3; // 0 is player 1
}
My_Kills[kill_indice] += 1;

This is more pseudo code off-the-cuff, but it may work.

-Jeff

Re: Who killed who? and with what? #10732
10/20/02 10:55
10/20/02 10:55

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



well, i'm lost! i'm not really a good programmer (i do web programming, easy stuff, database stuff) and all this is new to me (been using game studio now for almost a week).

I have build everything i need to snap together a good (and I do mean good) shooter but it's not going to be single player so things like this really need to be explained to me a little better. some code would help me out alot, even if it's not all of it, just a snip.

Re: Who killed who? and with what? #10733
10/20/02 11:31
10/20/02 11:31

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



I would go to the dowload page and check out Alain's Multiplayer workshop. Also, I would really suggest the manuals 7 day course. It's a bit long, but you will be thankfull you did it.

-Jeff

Re: Who killed who? and with what? #10734
10/20/02 16:04
10/20/02 16:04

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



i can do the multiplayer code just fine, it's the tracking of who killed who that i can't figure out

Re: Who killed who? and with what? #10735
10/22/02 04:07
10/22/02 04:07
Joined: Jul 2000
Posts: 8,973
Bay Area
Doug Offline
Senior Expert
Doug  Offline
Senior Expert

Joined: Jul 2000
Posts: 8,973
Bay Area
Check out the Arena game: http://www.conitec.net/arena/download.htm

It has a full score card.


Conitec's Free Resources:
User Magazine || Docs and Tutorials || WIKI
Re: Who killed who? and with what? #10736
10/22/02 04:42
10/22/02 04:42

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



Every time a player gets killed store the name of the player who scored the kill in a variable and/or array. There's really not much more to say because this is about the simplest programming task I can imagine. For most people this is literally the first thing they ever program; save the string "Hello World" and print it to the screen. It's odd to me that you can figure out how to do multiplayer but you can't figure out how to store names.

Page 1 of 2 1 2

Moderated by  HeelX, Spirit 

Gamestudio download | 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