Home » Renegade Discussions » Mod Forum » Server Side Hunt The Player
Re: Server Side Hunt The Player [message #314319 is a reply to message #314314] |
Mon, 28 January 2008 14:53 |
|
reborn
Messages: 3231 Registered: September 2004 Location: uk - london
Karma:
|
General (3 Stars) |
|
|
wittebolx wrote on Mon, 28 January 2008 16:20 | to Reborn:
in the gmmain.cpp i found this:
else if (strstr(CurrMap,"C&C_Under")) {
needs to be:
else if (strstr(Data->CurrMap,"C&C_Under")) {
also some f; where missing.
and i was trying to edit the code below but i couldnt get it to work..
can you give a clean example for lets say:
3 random characters with some extra weapons
and a way to enable the credit rate?
thx for the help.
Ps. i love this Mode
/////////////////////////////////////////////////////////////////////////////
// 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
// I used this method because I may wish to increase or decrease channces of specific models
// something I would not of been able to do if I kept it to just Get_Random_Int
// if (Rnd <= 10) Index = 2;
// else if (Rnd<=20) Index = 1;
// else if (Rnd<=30) 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
//Change_Character(obj,RandomSpawnCharacter[Index][0]);
//Commands->Set_Model(obj,RandomSpawnCharacter[Index][0]);
////////////////////////////////////////////////////////////////////////////
|
Thanks, I forgot about Under... I will change it and re-release it.
That code used to be a bigger array with character models, and I merely set there models. However it was proved to me that clients without scripts.dll saw the models in the "jesus" position (arms out straight like on a cross), so I stopped using it. I did briefly look into changing there characters entirely, however as there is no preset teamed to -1 by default I decided not to bother, so as to let people use existing objects.ddb mods they may have already (note there is no objects.ddb file released with the mod as it actually doesn't change anything using this file).
If you chnaged the character to a preset that was not teamed -1 then it would merely re-sapwn them until it came across a preset that was -1. If you didn't have a preset that was -1 in the array they would constantly loop in this manor (happened to me, lol ).
The code actually works (if you change the presets via the objects file to -1 )perhaps setting there team immediately might works also, but I doubt it)) All you have to do is amend the random character array in gmmain.cpp and un-comment the code.
|
|
|
|
|
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 04:00:18 MST 2025
Total time taken to generate the page: 0.01314 seconds
|