Page 1 of 1
Players R Objects
Posted: Sun May 14, 2006 5:03 pm
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.
Posted: Sun May 14, 2006 7:26 pm
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
Posted: Mon May 15, 2006 8:47 am
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
Posted: Mon May 15, 2006 10:44 am
by k47a
open the script (of the map you want to have changed) in notepad and write it in there...
Posted: Mon May 15, 2006 1:54 pm
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

Posted: Mon May 15, 2006 4:35 pm
by Rookie One.pl
I suggest you read the very basic scripting tutorials first, then.
Posted: Tue May 16, 2006 6:56 pm
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
Posted: Wed May 17, 2006 2:37 pm
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
Posted: Tue Aug 21, 2007 10:52 pm
by Cobra
Hi Guys,
This is a 2 year old topic and Im proud to bring it alive again.
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.