MOH Central

General Forums => General Chat => Topic started by: Hunter on May 17, 2004, 12:55:15 PM

Title: scripting
Post by: Hunter on May 17, 2004, 12:55:15 PM
i've dun a script but wot do i do after i've made it
Title: scripting
Post by: Cobra {sfx} on May 17, 2004, 07:39:31 PM
Can you be a bit more specific?

   What map is it for, what does it do, itll help if you paste it as we can spot errors easier etc etc

   

   Or if your confident...

   

   If its for a map say like the hunt, save it as obj_team1.scr

   open up pakscape and make a folder called maps then one inside that called obj and inside that obj folder you place your obj_team1.scr

   save in pakscape as user_blah.pk3 (note save as filetype quake3pak)

   then stop your server, place the pk3 file in moh/main and restart server - all going well it will work.

   

   I test mine on my pc first to make sure its going to be ok.

   

   that help?

   

   Cobra
Title: scripting
Post by: Hunter on May 18, 2004, 05:23:25 AM
well it's my first 1 and i don't really know what do do lol                           the thing i typed in was  

   

   

   

   TIKI

   setup

   {

      scale 0.52

         path models/vehicles/bmwbike

      skelmodel bmwbike.skd

         surface all shader bmwbike

   }

   

   init

   {

         server

            {

               classname drivablevehicle

         //classname VehicleWheelsX3

               setsize "-45 -30 0" "56 20 60"

               seatoffset "-14 0 24"

               gravity 0.7

               canjump

            vehiclespeed 500

            vehiclemass 1500

            vehicletread 10

            vehicleradius 0.33

            vehiclerollingresistance 0.5

            vehicledrag 0.00001

            turnrate 40

            vehiclebouncy 0.2

            vehiclespringy 0.8

   

            AnimationSet "bmwbike_"

            SoundSet "bmwbike_"

   

            

            //////////////////////////////////////////

            // Pitch-Mod Sound for vehicles by speed

            //

            // Linearly Interpolates from the minimum pitch when the vehicle is at the minimum speed to

            // the maximum pitch when the vehicle is at the maximum speed.

            //

            // Speed is in World Units.

            //

            //

            //                 +--------------- Minimum Speed

            //                 |  +------------ Minimum Pitch

            //                 |  |

            //                 |  |      +----- Maximum Speed

            //                 |  |      |  +-- Maximum Pitch

            //                 V  V      V  V

            setsoundparameters 0 0.95   200 1      

            }

   }

   

   animations

   {

         idle bmwbike.skc

   }

   

   /*QUAKED vehicle_german_bmwbike (0 0 0) (-40 -20 0) (40 20 50)

   BMW

   */
Title: scripting
Post by: Cobra {sfx} on May 18, 2004, 06:58:55 AM
Oh its a tiki file, not something ive messed around with yet, drivable too eh, did you follow a tutorial to do this?
Title: scripting
Post by: Hunter on May 18, 2004, 09:22:54 AM
no lol i jus thought i'd try scripting out so i jus editted a few bits lol
Title: scripting
Post by: Cobra {sfx} on May 18, 2004, 05:36:04 PM
Hope my tutorial over TS2 helps you m8, have fun moddin :)
Title: scripting
Post by: Hunter on May 20, 2004, 12:25:02 PM
i can't thank you more ran into a few problems yesturday scripts went all wrong so i had to get my back up one my clan members think there good so THANKS MATE