Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

The 'Show Off' topic

Good Guy George
Loyal Member
Joined
Apr 12, 2009
Messages
1,260
Reaction score
239
Re: The 'Show Off' thread - Part 2

Code:
	case MC_PEER_KILLSTREAK:
		{
			int nKillStreakCount;
			char szName[MAX_CHARNAME_LENGTH];
			char szName2[MAX_CHARNAME_LENGTH];
			char szMsg[512];

			pCommand->GetParameter(szName, 0, MPT_STR, MAX_CHARNAME_LENGTH);
			pCommand->GetParameter(&nKillStreakCount, 1, MPT_INT);

			if(nKillStreakCount == 4)
			{
				sprintf(szMsg, "%s is on a killing spree.(%i kills)", szName, nKillStreakCount);
			}
			else if(nKillStreakCount == 5)
			{
				sprintf(szMsg, "%s is on a rampage.(%i kills)", szName, nKillStreakCount);
			}
			else if(nKillStreakCount == 6)
			{
				sprintf(szMsg, "%s is godlike.(%i kills)", szName, nKillStreakCount);
			}
			else if(nKillStreakCount == 7)
			{
				sprintf(szMsg, "%s is dominating,(%i kills)", szName, nKillStreakCount);
			}
			else if(nKillStreakCount == 0)
			{
				pCommand->GetParameter(szName2, 2, MPT_STR, MAX_CHARNAME_LENGTH);

				if(szName2 != "")
				{
					sprint(szMsg, "%s has stopped %s's killing spree.", szName2, szName);
				}
			}
			else
			{
				sprintf(szMsg, "%s is legendary.(%i kills)", szName, nKillStreakCount);
			}

			ZChatOutput(szMsg, ZChat::CMT_SYSTEM);
		}
		break;

Could make it easily play sounds by just adding a call to PlaySound() beneath the sprintfs.

On where you gonna post the packet
 
Junior Spellweaver
Joined
Apr 28, 2012
Messages
114
Reaction score
22
Re: The 'Show Off' thread - Part 2

I guess your life is complete then. Now go hang yourself.

I sure will.
I had a quirrel with vusion last time, So I was a penis to him.
well, delete it.
 
Joined
Jun 17, 2009
Messages
2,726
Reaction score
340
Re: The 'Show Off' thread - Part 2

Code:
	case MC_PEER_KILLSTREAK:
		{
			int nKillStreakCount;
			char szName[MAX_CHARNAME_LENGTH];
			char szName2[MAX_CHARNAME_LENGTH];
			char szMsg[512];

			pCommand->GetParameter(szName, 0, MPT_STR, MAX_CHARNAME_LENGTH);
			pCommand->GetParameter(&nKillStreakCount, 1, MPT_INT);

			if(nKillStreakCount == 4)
			{
				sprintf(szMsg, "%s is on a killing spree.(%i kills)", szName, nKillStreakCount);
			}
			else if(nKillStreakCount == 5)
			{
				sprintf(szMsg, "%s is on a rampage.(%i kills)", szName, nKillStreakCount);
			}
			else if(nKillStreakCount == 6)
			{
				sprintf(szMsg, "%s is godlike.(%i kills)", szName, nKillStreakCount);
			}
			else if(nKillStreakCount == 7)
			{
				sprintf(szMsg, "%s is dominating,(%i kills)", szName, nKillStreakCount);
			}
			else if(nKillStreakCount == 0)
			{
				pCommand->GetParameter(szName2, 2, MPT_STR, MAX_CHARNAME_LENGTH);

				if(szName2 != "")
				{
					sprint(szMsg, "%s has stopped %s's killing spree.", szName2, szName);
				}
			}
			else
			{
				sprintf(szMsg, "%s is legendary.(%i kills)", szName, nKillStreakCount);
			}

			ZChatOutput(szMsg, ZChat::CMT_SYSTEM);
		}
		break;

Could make it easily play sounds by just adding a call to PlaySound() beneath the sprintfs.

Did this, only didn't use a new packet.
 
Hi, I'm Omar!
Loyal Member
Joined
Jan 6, 2011
Messages
1,345
Reaction score
646
Re: The 'Show Off' thread - Part 2

Did this, only didn't use a new packet.

Yeah, it isn't really a big deal. I just had a customer pay me for coding it for him, and since I was getting paid why not write something properly.

Why do you make a that "nKillStreakCount" when there is already nKills?

MC_PEER_KILLSTREAK is a Peer2Peer packet sent to all players in the room. Getting current character's kills would be completely wrong since it would get kills of each player and not the person who's on the streak.

This being said, it isn't really counted by kills, but how many kills in a row. Huge difference.
 
Last edited:
Retired. Don't PM.
Developer
Joined
Jan 5, 2009
Messages
593
Reaction score
741
Re: The 'Show Off' thread - Part 2

Yeah, it isn't really a big deal. I just had a customer pay me for coding it for him, and since I was getting paid why not write something properly.

Just curious, how much did you get paid for coding that?

Took you probably 15 minutes to make, probably could get in on that crappy code $$$.

PS It's probably a good idea to make it its own packet sent from the server (or client if you don't care about security.), switches do nothing for CPU, and if it's only triggered on death conditionally, no harm done.
 
Hi, I'm Omar!
Loyal Member
Joined
Jan 6, 2011
Messages
1,345
Reaction score
646
Re: The 'Show Off' thread - Part 2

Just curious, how much did you get paid for coding that?

Took you probably 15 minutes to make, probably could get in on that crappy code $$$.

PS It's probably a good idea to make it its own packet sent from the server (or client if you don't care about security.), switches do nothing for CPU, and if it's only triggered on death conditionally, no harm done.

Killstreaks and remember password on login screen for $30.

Edit; it's not the safest way to do it, but I wouldn't really bother with P2S for that amount of $.

It works like this.

Code:
// on a player kill.
x++;
if(x > 3)
  send the packet;
//on a player death.
x = 0;
 
Last edited:
Retired. Don't PM.
Developer
Joined
Jan 5, 2009
Messages
593
Reaction score
741
Re: The 'Show Off' thread - Part 2

Killstreaks and remember password on login screen for $30.

Reason I asked is because I'm like $10k in debt in 2 years when my college is completed.

Not bad for 30 minutes of work.

Also, next time for security purposes you may want to just track that on MMatchObject. Not that it matters, most RE's aren't that smart.
 
Hi, I'm Omar!
Loyal Member
Joined
Jan 6, 2011
Messages
1,345
Reaction score
646
Re: The 'Show Off' thread - Part 2

Reason I asked is because I'm like $10k in debt in 2 years when my college is completed.

Not bad for 30 minutes of work.

Also, next time for security purposes you may want to just track that on MMatchObject. Not that it matters, most RE's aren't that smart.
Yeah, well, I've made good $500 last summer.
 
Last edited:
2D > 3D
Loyal Member
Joined
Dec 19, 2008
Messages
2,413
Reaction score
1,193
Re: The 'Show Off' thread - Part 2

Working on this, right now I'm working on villager homes (stuff like  ) should have enough room for like 30-40 houses. 
This is like an hour or two of work, everything is liable to change. (especially that hideous ground). 
 
Max Development Photo
Phoenix - The 'Show Off' topic - RaGEZONE Forums
 
In Game Alpha Test (w/o Lightmap)
BCt61IU - The 'Show Off' topic - RaGEZONE Forums

 
 
YaUGKyq - The 'Show Off' topic - RaGEZONE Forums

 
 
XONlG7P - The 'Show Off' topic - RaGEZONE Forums

 
 
sbCzszH - The 'Show Off' topic - RaGEZONE Forums
Note* don't expect me to finish this, everyone knows my record for that >;D

Update: First variety of houses @60 quads:

Update Again: with ingame pics because people like ingame pics more
(kinda stole the lion statue and remodeled it to lessen the amount of polygons, but o well, it looks nice)
fX8M6wF - The 'Show Off' topic - RaGEZONE Forums
4B8tfB4 - The 'Show Off' topic - RaGEZONE Forums
sQtlnem - The 'Show Off' topic - RaGEZONE Forums
 

Attachments

You must be registered for see attachments list
Last edited:
Newbie Spellweaver
Joined
Sep 20, 2012
Messages
31
Reaction score
16
Re: The 'Show Off' thread - Part 2


I don't know what I'm doing. (Reminds ?)


But it looks very fun. Probably organizing this will be useful.

(Sorry for spamming videos and Linking without permission.)
 
Joined
Jan 4, 2007
Messages
1,600
Reaction score
217
Re: The 'Show Off' thread - Part 2


I don't know what I'm doing. (Reminds ?)


But it looks very fun. Probably organizing this will be useful.

(Sorry for spamming videos and Linking without permission.)

Oh, the world of emulation. All those random glitches :p
 
Joined
Feb 26, 2011
Messages
596
Reaction score
273
Re: The 'Show Off' thread - Part 2

Working on this, right now I'm working on villager homes (stuff like  ) should have enough room for like 30-40 houses. 
This is like an hour or two of work, everything is liable to change. (especially that hideous ground). 
 
Max Development Photo
Phoenix - The 'Show Off' topic - RaGEZONE Forums
 
In Game Alpha Test (w/o Lightmap)
BCt61IU - The 'Show Off' topic - RaGEZONE Forums

 
 
YaUGKyq - The 'Show Off' topic - RaGEZONE Forums

 
 
XONlG7P - The 'Show Off' topic - RaGEZONE Forums

 
 
sbCzszH - The 'Show Off' topic - RaGEZONE Forums
Note* don't expect me to finish this, everyone knows my record for that >;D

Update: First variety of houses @60 quads:

Update Again: with ingame pics because people like ingame pics more
(kinda stole the lion statue and remodeled it to lessen the amount of polygons, but o well, it looks nice)
fX8M6wF - The 'Show Off' topic - RaGEZONE Forums
4B8tfB4 - The 'Show Off' topic - RaGEZONE Forums
sQtlnem - The 'Show Off' topic - RaGEZONE Forums


really epic map ,btw what with your other map? ahm?
 

Attachments

You must be registered for see attachments list
Intelligent DoucheBag
Loyal Member
Joined
Jan 5, 2008
Messages
1,698
Reaction score
288
Re: The 'Show Off' thread - Part 2

Working on this, right now I'm working on villager homes (stuff like  ) should have enough room for like 30-40 houses. 
This is like an hour or two of work, everything is liable to change. (especially that hideous ground). 
 
Max Development Photo
Phoenix - The 'Show Off' topic - RaGEZONE Forums
 
In Game Alpha Test (w/o Lightmap)
BCt61IU - The 'Show Off' topic - RaGEZONE Forums

 
 
YaUGKyq - The 'Show Off' topic - RaGEZONE Forums

 
 
XONlG7P - The 'Show Off' topic - RaGEZONE Forums

 
 
sbCzszH - The 'Show Off' topic - RaGEZONE Forums
Note* don't expect me to finish this, everyone knows my record for that >;D

Update: First variety of houses @60 quads:

Update Again: with ingame pics because people like ingame pics more
(kinda stole the lion statue and remodeled it to lessen the amount of polygons, but o well, it looks nice)
fX8M6wF - The 'Show Off' topic - RaGEZONE Forums
4B8tfB4 - The 'Show Off' topic - RaGEZONE Forums
sQtlnem - The 'Show Off' topic - RaGEZONE Forums

really epic map ,btw what with your other map? ahm?


'nuff said.

OT:
WUCAS FINISH IT FOR ONCE.
if you finish it, I will find you and do stuff with ;););)
 

Attachments

You must be registered for see attachments list
Newbie Spellweaver
Joined
Nov 3, 2011
Messages
70
Reaction score
6
Re: The 'Show Off' thread - Part 2

A Gunz website designed by me :D
 

Attachments

You must be registered for see attachments list
Pee Aitch Pee
Joined
Mar 30, 2011
Messages
630
Reaction score
422
Re: The 'Show Off' thread - Part 2

odRqw - The 'Show Off' topic - RaGEZONE Forums


The image speaks for itself.... I guess.
Just a small preview of my new GMCP.

Continued this project.

Will be using , and .
 

Attachments

You must be registered for see attachments list
Back
Top