Model not responding to scale k/v

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
crunch
Major
Posts: 348
Joined: Sat Jun 14, 2003 2:34 pm
Location: USA
Contact:

Model not responding to scale k/v

Post by crunch »

Quick overview:

In the level I am currently working on, at a certain point in the level, a bombertrigger sets a bombing run.

I have 4 vehicles/stuka.tik as script_objects.
Upon setting off the trigger, the pilots come out of the hangar, run to their planes, and "get into" them (actually deleted by script after they get to a certain point behind the plane).
No problem, works great.

Then the script removes the script_object stukas (which have no propeller animation), plays the engine sound, and the bombing run starts by immediately inserting the $bomberpaths in the exact location that the no-fly stukas were located. Great! This all works.

The only problem, is that the vehicles/stuka_fly.tik which are the models for the $bomberpaths are 1/2 the size they should be!

No matter what scale I use, they are 1/2 a normal stuka's size!

Anyone know the reason, and what must be done to correct this?

Thank You.
Image
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Post by bdbodger »

It says right in the bomber.scr to make the planees 1/2 size

flyplane local.i local.model local.sound local.smoke:
println ("using model " + local.model)

if (local.smoke)
{
local.ent = spawn emitters/plane_smoke.tik
local.ent glue self
}

self model local.model
// self model self.model
// self model "vehicles/tigertank.tik"
self.origin = level.bomberpath[local.i].origin
self scale 0.5 /////////////////////////////////////////////////
// wait 1
if (self.pause != NIL)


You will need a custom bomber.scr
crunch
Major
Posts: 348
Joined: Sat Jun 14, 2003 2:34 pm
Location: USA
Contact:

Post by crunch »

Thanks bdbodger....I overlooked that minor detail :roll: .......it is working now with a simple copy of the bomber.scr with the scale adjusted to 1. :D

Of course the copy of the bomber.scr is now renamed. :wink:

Thanks for the insight!
Image
Post Reply