MOH Central

General Forums => General Chat => Topic started by: mr_choco_lips on July 18, 2004, 02:01:05 AM

Title: BIG PLAYERS!!!!
Post by: mr_choco_lips on July 18, 2004, 02:01:05 AM
im kina new and a n00b at scripting and wondering how to make players big i think cobra done it to me once XD i think its funny
Title: BIG PLAYERS!!!!
Post by: Elgan {sfx} on July 18, 2004, 09:31:52 AM
get the player u want and then do

   ]

   

   player scale 4.-
Title: BIG PLAYERS!!!!
Post by: mr_choco_lips on July 18, 2004, 10:08:41 PM
cool thanks
Title: BIG PLAYERS!!!!
Post by: Elgan {sfx} on July 20, 2004, 10:33:01 AM
// init cvar to nothing

   setcvar "clientbig" ""

   

   // infinate loop

   while(1)

   {

   

   // check for cvar 'clientkill' being set to a valid number

   while (1)

   {

      wait 1 // check once per second

   

      // is cvar set ?

      local.cvar = getcvar "clientbig"

      if (local.cvar!="")

      {

       // whats the client number ?

       local.clientkill = int (local.cvar)

   

       // is it in the valid range ?

       if (local.clientbig>=0 && local.clientbig<$player.size)

          break

      }

   }

   

      // use correct index in player array

      local.p=local.clientbig+1;

   

      // set player

      local.player = $player[local.p];

   

      if(local.player.health > 0 && local.player.dmteam != "spectator")

      {

          // player commits suicide

          local.player scale 4

   

          wait .5 // wait a bit

   

           local.player scale 1

   

         }

   

      // reset cvar

      setcvar "clientbig" ""

   }

   end

   

   

   

   

   in console clientbig 4 wil make 4 big

   

   

   it will not effect it bounding box though. i cant remember the player sizes bix atm. maybe another modder can help