So, how could I let the mg know about it's new center direction? I tried something like
Code: Select all
$mg.yawcenter = $platform.angleModerator: Moderators
Code: Select all
$mg.yawcenter = $platform.angleerrrm don't think so. it's visible and usable all the time before, during and after the rotationKalti wrote:It's not my place... I know![]()
But can't you spawn a new mg after the release, perhaps it will take the mg.yawcenter command only that way ?
Code: Select all
main:
level waittill prespawn
//*** Precache Dm Stuff
exec global/DMprecache.scr
level.script = maps/dm/mgrotation.scr
level waittill spawn
thread prep
end
prep:
$mg bind $counter_rotation
$bipod bind $platform
$counter_rotation bind $platform
$platform rotateY 5
$counter_rotation rotateY -5
end
I thought it to be confusing enough already.Kalti wrote:Btw. the mg will rotate a full 360 when in the hands of the player... is it ment to do that or does that has to be defined ?
Code: Select all
main:
level waittill prespawn
exec global/DMprecache.scr
level.script = maps/dm/mgrotation.scr
level waittill spawn
thread prep
thread rot
end
prep:
$mg bind $platform
$bipod bind $platform
$platform rotateY 5
end
rot:
while(1)
{
$mg yawcenter $platform.angle
iprintln_noloc $platform.angle " | " $mg.angle
wait .5
}
endCode: Select all
iprintln_noloc $platform.angle " | " $mg.angles