Alliedassault

Alliedassault (alliedassault.us/index.php)
-   MoH Maps, Mods & Skins (alliedassault.us/forumdisplay.php?f=11)
-   -   why my script can't work at MP mode? (alliedassault.us/showthread.php?t=14429)

man2104 12-09-2002 07:00 AM

why my script can't work at MP mode?
 
This is my paratrooper script
i get it work fully at SP mode
but when mp mode 2 ppl. jump together
one of the paratrooper will fall down on the ground another one hold and't can't move
why?
thx your your reading
here is my code

setparatrooper:
self.player = parm.other
if (self.player.seted == NIL || self.player.seted == 0)
{
iprintlnbold_noloc "Jump!"
self.player.para = spawn static/parachute "classname" "scriptmodel" "origin" self.player.origin "angles" "0 0 0"
self.player.para notsolid
self.player.player_parachute = spawn script_origin
self.player.hit_target = spawn script_origin
self.player.seted = 1
self.temp1 = self.player.origin
self.temp1[0] += randomfloat(1000)
self.temp1[1] += randomfloat(1000)
self.temp1[0] -= randomfloat(1000)
self.temp1[1] -= randomfloat(1000)
self.temp1[2] = 56
self.player.player_parachute origin self.player.origin
self.player.hit_target origin self.temp1
self.player dog
self.player.turret = spawn models/statweapons/camera_restrict.tik
self.player.turret.origin = self.player.origin
self.player.turret.angles = self.player.angles
self.player.turret startyaw self.player.yaw

self.player.turret notsolid
self.player.turret hide
self.player.turret turnspeed 1000

self.player.turret maxyawoffset 50

self.player.turret pitchcaps "-60 40 0"
self.player.turret viewjitter 0
self.player.turret name ""
self.player.turret pickupsound ""
self.player.turret setPlayerUsable 1
self.player.turret maxuseangle 360 // make sure the doUse command works!
self.player.turret doUse self.player

self.player.turret setPlayerUsable 0

self.player.para glue self.player.player_parachute
self.player.turret glue self.player.player_parachute

self.player.player_parachute angles "0 "(self.player.turret.angles[1]-180)" 0"
iprintlnbold_noloc self.player.player_parachute.angles

thread RockTurret 22.0 0.1 5.0 10

self.player.player_parachute time 10
self.player.player_parachute moveto self.player.hit_target
self.player.player_parachute move
wait 10.1

self.player.turret setPlayerUsable 1
self.player.turret doUse self.player
self.player.turret setPlayerUsable 0
self.player.turret delete
self.player.turret = NULL
self.player dog
iprintlnbold_noloc "Landed!"
self.player.para delete
self.player.para = NULL
self.player.player_parachute delete
self.player.player_parachute = NULL
self.player.hit_target delete
self.player.hit_target = NULL
self.player.seted = 0
}
end

numba1stunna 12-09-2002 07:08 AM

scorpio would know[/quote]


All times are GMT -6. The time now is 01:38 PM.

Powered by vBulletin® Version 3.8.12 by ScriptzBin
Copyright ©2000 - 2025, vBulletin Solutions Inc.
© 1998 - 2007 by Rudedog Productions | All trademarks used are properties of their respective owners. All rights reserved.