Alliedassault           
FAQ Calendar
Go Back   Alliedassault > FPS Gaming General Discussion > MoH Maps, Mods & Skins
Reload this Page why my script can't work at MP mode?
MoH Maps, Mods & Skins Discuss custom maps, skins and mods here.

Reply
 
Thread Tools Display Modes
why my script can't work at MP mode?
Old
  (#1)
man2104 is Offline
Junior Member
 
Posts: 1
Join Date: Dec 2002
   
Default why my script can't work at MP mode? - 12-09-2002, 07:00 AM

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
  
Reply With Quote
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



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