RotateX/Y/Z and move forward

Post your scripting questions / solutions here

Moderator: Moderators

User avatar
HDL_CinC_Dragon
Brigadier General
Posts: 574
Joined: Mon Dec 22, 2003 8:32 pm

Post by HDL_CinC_Dragon »

thats because the game dosnt know your bath (im guessing its a bathtub) is supposed to be in a script so when the script is looking for $bathallied it cant find one cuz it dosnt realize the bath is supposed to be scripted
Image
Runt
First Lieutenant
Posts: 188
Joined: Wed Feb 11, 2004 5:03 pm
Location: The Netherlands
Contact:

Post by Runt »

HDL_CinC_Dragon wrote:thats because the game dosnt know your bath (im guessing its a bathtub) is supposed to be in a script so when the script is looking for $bathallied it cant find one cuz it dosnt realize the bath is supposed to be scripted
Ok, I understand that.. But how do I have to fix it? :roll:
Thanks for the help :wink:
Green Beret
Major General
Posts: 746
Joined: Mon Apr 19, 2004 12:21 pm
Contact:

Post by Green Beret »

bdbodger wrote:My rule of thumb is speed for movement time for rotation .
Thnx fer the tip :wink:

i learn sumtin new everyday :?
Image
User avatar
HDL_CinC_Dragon
Brigadier General
Posts: 574
Joined: Mon Dec 22, 2003 8:32 pm

Post by HDL_CinC_Dragon »

Runt wrote:
HDL_CinC_Dragon wrote:thats because the game dosnt know your bath (im guessing its a bathtub) is supposed to be in a script so when the script is looking for $bathallied it cant find one cuz it dosnt realize the bath is supposed to be scripted
Ok, I understand that.. But how do I have to fix it? :roll:
Thanks for the help :wink:



lol ok. So you have the bath tub but its only a regular entity. The game is looking for anything thats a "script_model" or "script_object" or something "script_...". What you need to do is (with out having anything selected) create a "script_model" and then press "n". when the little window pops up, in the first typing box labeled "key" inside the window type "model" then in the typing box under that titled "Value" type "static/bathtub.tik" and now just place it where ever you want it and now you can fully script it to do what ever you want :D :D

hope this helped!
Image
Runt
First Lieutenant
Posts: 188
Joined: Wed Feb 11, 2004 5:03 pm
Location: The Netherlands
Contact:

Post by Runt »

Ok, tried that.. It does work, but
1) the bath is ugly yellow colored (maybe because of the "-fast" at vis options.)
2) i can only sit on top of it. Not in the bath itself..
3) The "standard" models dissapear.. :(

Image

:(
Master-Of-Fungus-Foo-D
Muffin Man
Posts: 1544
Joined: Tue Jan 27, 2004 12:33 am
Location: cali, United States

Post by Master-Of-Fungus-Foo-D »

it is solid because it is a script_model ;) you need to make it notsolid manually... then make your own clip ;)
Image
The Fungus Theme song!!!

Code: Select all

while (local.player istouching self)
User avatar
ViPER
General
Posts: 1058
Joined: Fri Jan 14, 2005 5:48 pm
Location: California
Contact:

Post by ViPER »

yea but hes moving it around i think... any angles might make that wierd. try a box, box lid or a desk that has a good solid shape.
Runt
First Lieutenant
Posts: 188
Joined: Wed Feb 11, 2004 5:03 pm
Location: The Netherlands
Contact:

Post by Runt »

Master-Of-Fungus-Foo-D wrote:it is solid because it is a script_model ;) you need to make it notsolid manually... then make your own clip ;)
Did that, but i really want to have a normal bath.. Not yellow :(:(

Console is spamming this message:
Image
User avatar
HDL_CinC_Dragon
Brigadier General
Posts: 574
Joined: Mon Dec 22, 2003 8:32 pm

Post by HDL_CinC_Dragon »

hmmm i cant help ya past what i already did man sry. im not familiar with this problem :? :? :( :(
Image
Runt
First Lieutenant
Posts: 188
Joined: Wed Feb 11, 2004 5:03 pm
Location: The Netherlands
Contact:

Post by Runt »

HDL_CinC_Dragon wrote:hmmm i cant help ya past what i already did man sry. im not familiar with this problem :? :? :( :(
No problem :) You did what you could :wink: Thanks!
Maybe other people are more familiar with this problem :roll: :)
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Post by bdbodger »

the shader has rgbGen Vertex in it that is why you get that error . It happens alot with the models in the static models section . If it is a cutom map you can make a custom shader and change the shader to read rgbGen lightingSpherical
Image
Runt
First Lieutenant
Posts: 188
Joined: Wed Feb 11, 2004 5:03 pm
Location: The Netherlands
Contact:

Post by Runt »

bdbodger wrote:the shader has rgbGen Vertex in it that is why you get that error . It happens alot with the models in the static models section . If it is a cutom map you can make a custom shader and change the shader to read rgbGen lightingSpherical
Thank you very much ! It is a nice model now :D . I edited the "bath part"of "furniture.shader" and now it works :!: Thanks!
User avatar
HDL_CinC_Dragon
Brigadier General
Posts: 574
Joined: Mon Dec 22, 2003 8:32 pm

Post by HDL_CinC_Dragon »

Anytime :wink: (from my part that is lol, took a collective genius to work this out heh heh)
Image
Post Reply