Home » Renegade Discussions » Mod Forum » Server Side Hunt The Player
Re: Server Side Hunt The Player [message #314587 is a reply to message #314412] |
Wed, 30 January 2008 03:28 |
|
wittebolx
Messages: 332 Registered: May 2007 Location: the netherlands
Karma:
|
Recruit |
|
|
reborn wrote on Tue, 29 January 2008 17:22 | Change the RandomSpawnCharacter array to model names instead of preset names, like this:
// Note that I havn't included the .w3d file extension
char *RandomSpawnCharacter[3][1] = {
{ "trike" },
{ "clown" },
{ "dino" },
};
Change the MDB_SSGM_Player::Created part of your code to look like this:
(comments have been added for you to follow)
void MDB_SSGM_Player::Created(GameObject *obj) {
/////////////////////////////////////////////////////////////////////////////
// This line of code ensures that the player uses the hard-coded spawn points,
// as the nuetral team does not have any apart from 0,0,0
RequestSpawn(obj);
/////////////////////////////////////////////////////////////////////////////
// This code here ensures a random number is drawn between 1 and 100
int Rnd = Commands->Get_Random_Int(1,100);
/////////////////////////////////////////////////////////////////////////////
// declare and initialise Index as 0, Index will be the number used to choose a model from the model array
int Index = 0;
/////////////////////////////////////////////////////////////////////////////
// code to get a random number for Index
//This code here basically changes the chances of the model your character gets set to
//Instead of drawing a random number between one and three (meaning you would have an equal chance of getting any model)
//This code makes sure the greatest chance is of getting Index 1, followed by Index 0, then Index 2.
if (Rnd <= 10) Index = 2;
else if (Rnd<=60) Index = 1;
else if (Rnd<=80) Index = 0;
/////////////////////////////////////////////////////////////////////////////
// This code sets the model of the player, using Index as the random number
// but using the array of models made earlier for it's list
//Commands->Set_Model(obj,RandomSpawnCharacter[Index][0]);
////////////////////////////////////////////////////////////////////////////
if (Settings->ForceTeam != -1) {
if (Commands->Get_Player_Type(obj) != Settings->ForceTeam) {
Change_Team(obj,Settings->ForceTeam);
return;
}
}
//etc etc etc
Also please note, the download has now changed to include support for CnC_Under.mix.
|
i managed to add all mission maps to the .dll with 32 spawn points per map.
also renamed the Hunt the Player Mode to DM
reason: more people.
added !pt command so people can buy normal characters like from the Purchase terminal.
added weapon spawn points.
*still need to figure out the random character spawn, because it gives some problems.
* need to find a way for the credit tick rate to enable.
* need to fix bug where you change character as the infected player, the DNA thing will not disappear.
http://www.wittebolx.com
|
|
|
|
|
Server Side Hunt The Player
By: reborn on Fri, 25 January 2008 04:30
|
|
|
Re: Server Side Hunt The Player
By: renalpha on Fri, 25 January 2008 04:35
|
|
|
Re: Server Side Hunt The Player
By: reborn on Fri, 25 January 2008 04:39
|
|
|
Re: Server Side Hunt The Player
|
|
|
Re: Server Side Hunt The Player
By: renalpha on Fri, 25 January 2008 04:41
|
|
|
Re: Server Side Hunt The Player
By: Lone0001 on Fri, 25 January 2008 09:06
|
|
|
Re: Server Side Hunt The Player
By: JeepRubi on Fri, 25 January 2008 12:06
|
|
|
Re: Server Side Hunt The Player
By: reborn on Fri, 25 January 2008 13:04
|
|
|
Re: Server Side Hunt The Player
By: JeepRubi on Fri, 25 January 2008 14:15
|
|
|
Re: Server Side Hunt The Player
|
|
|
Re: Server Side Hunt The Player
By: reborn on Fri, 25 January 2008 14:41
|
|
|
Re: Server Side Hunt The Player
|
|
|
Re: Server Side Hunt The Player
By: reborn on Sun, 27 January 2008 06:23
|
|
|
Re: Server Side Hunt The Player
|
|
|
Re: Server Side Hunt The Player
By: Xpert on Tue, 29 January 2008 14:47
|
|
|
Re: Server Side Hunt The Player
By: cmatt42 on Mon, 28 January 2008 03:53
|
|
|
Re: Server Side Hunt The Player
By: Zion on Mon, 28 January 2008 04:02
|
|
|
Re: Server Side Hunt The Player
By: reborn on Mon, 28 January 2008 04:27
|
|
|
Re: Server Side Hunt The Player
By: cnc95fan on Mon, 28 January 2008 09:30
|
|
|
Re: Server Side Hunt The Player
|
|
|
Re: Server Side Hunt The Player
By: reborn on Mon, 28 January 2008 14:53
|
|
|
Re: Server Side Hunt The Player
|
|
|
Re: Server Side Hunt The Player
By: reborn on Tue, 29 January 2008 06:57
|
|
|
Re: Server Side Hunt The Player
By: reborn on Tue, 29 January 2008 09:22
|
|
|
Re: Server Side Hunt The Player
|
|
|
Re: Server Side Hunt The Player
By: reborn on Wed, 30 January 2008 03:36
|
|
|
Re: Server Side Hunt The Player
|
|
|
Re: Server Side Hunt The Player
|
|
|
Re: Server Side Hunt The Player
By: reborn on Wed, 30 January 2008 05:06
|
|
|
Re: Server Side Hunt The Player
|
|
|
Re: Server Side Hunt The Player
|
|
|
Re: Server Side Hunt The Player
|
|
|
Re: Server Side Hunt The Player
By: reborn on Thu, 31 January 2008 15:39
|
|
|
Re: Server Side Hunt The Player
|
|
|
Re: Server Side Hunt The Player
By: mvrtech on Mon, 04 February 2008 15:08
|
|
|
Re: Server Side Hunt The Player
By: reborn on Mon, 04 February 2008 16:52
|
|
|
Re: Server Side Hunt The Player
By: reborn on Mon, 04 February 2008 17:09
|
|
|
Re: Server Side Hunt The Player
By: mvrtech on Tue, 05 February 2008 00:43
|
|
|
Re: Server Side Hunt The Player
|
|
|
Re: Server Side Hunt The Player
By: mvrtech on Tue, 05 February 2008 14:16
|
|
|
Re: Server Side Hunt The Player
By: reborn on Tue, 05 February 2008 14:39
|
|
|
Re: Server Side Hunt The Player
By: cnc95fan on Tue, 05 February 2008 14:52
|
|
|
Re: Server Side Hunt The Player
By: mvrtech on Tue, 05 February 2008 16:31
|
|
|
Re: Server Side Hunt The Player
By: Lone0001 on Tue, 05 February 2008 16:44
|
|
|
Re: Server Side Hunt The Player
By: mvrtech on Wed, 06 February 2008 13:28
|
|
|
Re: Server Side Hunt The Player
By: reborn on Thu, 07 February 2008 20:24
|
|
|
Re: Server Side Hunt The Player
By: Lone0001 on Thu, 07 February 2008 20:46
|
|
|
Re: Server Side Hunt The Player
By: mvrtech on Sat, 09 February 2008 09:02
|
|
|
Re: Server Side Hunt The Player
By: LR01 on Sat, 09 February 2008 10:29
|
|
|
Re: Server Side Hunt The Player
|
|
|
Re: Server Side Hunt The Player
By: reborn on Tue, 21 July 2009 22:26
|
|
|
Re: Server Side Hunt The Player
|
|
|
Re: Server Side Hunt The Player
By: reborn on Fri, 24 July 2009 04:07
|
Goto Forum:
Current Time: Wed Feb 05 02:47:18 MST 2025
Total time taken to generate the page: 0.01366 seconds
|