PDA

View Full Version : [VIDEO] rotating brushmodels



kung foo man
5th August 2012, 18:44
http://www.youtube.com/watch?v=--chMi15m9k&hd=1

direct-link: http://www.youtube.com/watch?v=--chMi15m9k&hd=1

Just made this! Its my first video. The quality COULD be better, but everything is readable. Make sure to watch in 720p.

There is no sound, so dont wonder. :D

Content:
1. making the map
2. configuring the server
3. start the server to test
4. write the script
5. see the result of the script

Because its my first video, please tell me what i can do better! :)

Have fun!

kung foo man
17th August 2012, 15:57
the written script:



main()
{
something = getEnt("something", "targetname");

angle = 90; // 4 times = one full round
seconds = 1;

while (1)
{
for (i=0; i<4; i++)
{
iprintlnbold("rotateYaw " + i); // 0,1,2,3 = 4
something rotateYaw(angle, seconds);
something waittill("rotatedone");
}
for (i=0; i<4; i++)
{
iprintlnbold("rotatePitch " + i); // 0,1,2,3 = 4
something rotatePitch(angle, seconds);
something waittill("rotatedone");
}
for (i=0; i<4; i++)
{
iprintlnbold("rotateRoll " + i); // 0,1,2,3 = 4
something rotateRoll(angle, seconds);
something waittill("rotatedone");
}
}
}

DisSle
2nd November 2012, 10:42
[...]Because its my first video, please tell me what i can do better! :)[...]

Would be better if you talk a little bit at mapping part. That newbies will understand better what to do. ;)

shadix
6th November 2012, 11:27
Result http://beta.xfire.com/videos/5bfff7

Puissant
2nd December 2012, 19:49
Hi, i want to copy that but i get this error message:



******* script compile error *******
unknown function: @ 38035
************************************
Error during initialization:
script compile error
(see console for details)


Does anybody knows how to fix?

kung foo man
2nd December 2012, 20:40
Ufff, tried now really long to help in TeamViewer and it finally works.

Problems in Windows 7:
- ALWAYS right-click on the Programs and start as Administator -> otherwise you cant save anything OR IT IS SAVING, BUT THERE IS ONE SAVED VERSION FOR EACH USER

Normal Problems:
- ALWAYS work with a CLEAN CoD2-Copy! No Missing-Functions and Shit this way
- When made a "CoD2 Modding"-Copy, REMEMBER to enter the new Path of it in CoD2-Compile-Tool, or you are compiling some old map in the Gaming-Copy flooded with mods.

Mitch
3rd December 2012, 19:29
Hi, i want to copy that but i get this error message:



******* script compile error *******
unknown function: @ 38035
************************************
Error during initialization:
script compile error
(see console for details)


Does anybody knows how to fix?
unknown function: @ 38035 means that you are missing a function. Run your cod in developer mode by setting /developer to 1. Now it will say what function it is crashing on.

EvoloZz
27th February 2013, 17:31
Hmm, what about if I want the brushmodel to rotate from some angel (like rotating door or something), because for me it just does a huge circle around my map :D

Ni3ls
27th February 2013, 18:38
Use the joint as rotating point;)

EvoloZz
27th February 2013, 18:40
Yeah just realised it, thanks :D

EvoloZz
28th February 2013, 14:49
I tried, but it still does a circle around my map

Ni3ls
28th February 2013, 15:39
Then you suck! :P Make a origin texture for the joints and then select the joints+model and make it script_brushmodel.

EvoloZz
28th February 2013, 16:31
There was just other problem behind it, so take your words back.
The problem was because if I just added the same targetname to the origin it wouldn't work, so to fix it, I selected the brush and origin and added the script_brushmodels to them. Didn't know that radiant is fucking up with that
-_-
Also I fixed it right after posting that it doesn't work, I was just too lazy to inform that...

Ni3ls
28th February 2013, 16:47
Nice that you fixed it:)