Players R Objects

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
dedoum
Private
Posts: 6
Joined: Sun May 14, 2006 4:55 pm

Players R Objects

Post by dedoum »

Hi all,

Sry for English.

I m searching a script where i can force a player on my server to have an Object Skin (W.C., piano, bath...

I know this mod existing, but i dont know where...

Can anyone know where i can find it? or create it?

Thx all.
Rookie One.pl
Site Admin
Posts: 2752
Joined: Fri Jan 31, 2003 7:49 pm
Location: Nowa Wies Tworoska, Poland
Contact:

Post by Rookie One.pl »

Why not make your own? Place a trigger somewhere launching this thread:

Code: Select all

turn_into_something:
   local.player = parm.other
   local.player.thing = spawn animate model "path to your model here"
   local.player.thing notsolid
   local.player.thing glue local.player
   local.player hide
   while (isAlive(local.player))
      waitframe
   local.player.thing delete
end
Admin
Image
Image
Honour guide me.

here's my stuff - inequation.org | here's where I work - thefarm51.com
dedoum
Private
Posts: 6
Joined: Sun May 14, 2006 4:55 pm

Post by dedoum »

Ok m8,

Thx for your help.

But, where (sry i m not really good :( ) can i make this script to be launched?

For example if u can help me please :)

ThX
User avatar
k47a
товарищ
Posts: 810
Joined: Fri Mar 25, 2005 1:19 pm

Post by k47a »

open the script (of the map you want to have changed) in notepad and write it in there...
Image
dedoum
Private
Posts: 6
Joined: Sun May 14, 2006 4:55 pm

Post by dedoum »

Is it possible to allow for example :

Player N? 1 on server is a Bath
Player N?2 on server is a tree...

But i can activate it or desactivate it when i want in a script?


But, real thanks for your help @ all !!!

Nice community on this Forum :wink:
Rookie One.pl
Site Admin
Posts: 2752
Joined: Fri Jan 31, 2003 7:49 pm
Location: Nowa Wies Tworoska, Poland
Contact:

Post by Rookie One.pl »

I suggest you read the very basic scripting tutorials first, then.
Admin
Image
Image
Honour guide me.

here's my stuff - inequation.org | here's where I work - thefarm51.com
dedoum
Private
Posts: 6
Joined: Sun May 14, 2006 4:55 pm

Post by dedoum »

it's ok now :)

But, do u know what is the commande to morp player?

For burn :

rcon set fst_action 1 |burn| (for player 1)

but for morph?what s it?
thread level.FST_functions::clientbomb local.p
break
case morph:
thread level.FST_functions::clientmorph local.p local.playerMisc
clientmorph local.p local.modeltype:
if (local.p>$player.size)
end

if ($player[local.p]==NULL)
end
local.player = $player[local.p]

if ((local.player.morphon == NIL) || (local.player.morphon == 0))
{

switch (local.modeltype)
{
case "bodies":
local.morph_mdl = "models/static/bodies_tarp.tik"
local.morph_scale = 1
break
case "light":
local.morph_mdl = "models/static/lightpost_globe.tik"
local.morph_scale = 1
local.player light 1 1 1 250
break
case "rock":
local.morph_mdl = "models/static/rock_large.tik"
local.morph_scale = .6
break
case "toilet":
local.morph_mdl = "models/static/toilet_short.tik"
local.morph_scale = 1
break
case "hog":
local.morph_mdl = "models/static/hedgehog.tik"
local.morph_scale = 1
break
case "roach":
local.morph_mdl = "models/animal/cockroach.tik"
local.morph_scale = 50
break
case "clock":
local.morph_mdl = "models/static/grandfathers_clock.tik"
local.morph_scale = 1
break
case "bush":
local.morph_mdl = "models/static/bush_full.tik"
local.morph_scale = 0.5
break
case "bags":
local.morph_mdl = "models/static/flourbag-stack.tik"
local.morph_scale = 2
break
default:
end
break
}

local.morph = spawn script_model
local.morph model local.morph_mdl
local.morph.scale = local.morph_scale
local.morph.origin = local.player.origin
local.morph notsolid
local.morph glue local.player
local.player hide
local.player iprint "You have been transformed by an admin." 1
local.player.morphon = 1

while(local.player.morphon==1)
{
local.player takeall
wait 45
local.player.morphon = 0
}

local.player lightOff
local.morph remove
local.player show
local.player iprint "You are back to normal." 1
}
end
Green Beret
Major General
Posts: 746
Joined: Mon Apr 19, 2004 12:21 pm
Contact:

Post by Green Beret »

You might have to add and END in there somewere
Or Put the part below as a thread??

Code: Select all

}
end//<---maybe add this end
//Is anything calling this thread below
thread_name://dunno if you need this
local.morph = spawn script_model
local.morph model local.morph_mdl
local.morph.scale = local.morph_scale
local.morph.origin = local.player.origin
local.morph notsolid
local.morph glue local.player
local.player hide
local.player iprint "You have been transformed by an admin." 1
local.player.morphon = 1

while(local.player.morphon==1)
{
local.player takeall
wait 45
local.player.morphon = 0
}

local.player lightOff
local.morph remove
local.player show
local.player iprint "You are back to normal." 1
}
end 
Image
User avatar
Cobra
Colour Sergeant
Posts: 93
Joined: Sun Jul 17, 2005 9:22 am
Location: The Netherlands
Contact:

Post by Cobra »

Hi Guys,

This is a 2 year old topic and Im proud to bring it alive again. :wink:

I got a question, I have cut the morph script to use it on my server, but the official Foresight script is coming with a timelimit when you are morphed. Ok you can extend that ofcourse, but I want an option that you can morph a player and put him back to normal with a simply manual fuction ( console command ).

If someone knows, please can you put it here.
Gamefront.nl
News - Mods - Patches - Maps - Demos
Post Reply