Massassi Forums Logo

This is the static archive of the Massassi Forums. The forums are closed indefinitely. Thanks for all the memories!

You can also download Super Old Archived Message Boards from when Massassi first started.

"View" counts are as of the day the forums were archived, and will no longer increase.

ForumsCog Forum → Push a box & Move in vector
Push a box & Move in vector
2003-03-02, 4:51 AM #1
Hi!
Correct me if I'm wrong but I think these are more of COG questions than anything else.
\
1) Push a box: Is there a way in a COG to like
/ when you punch a box it will move in that direction?
I don't mean like the throwables, I mean like
in a sockoban like game, punch a box and it
will change position by 10 meters in the direction
you punched it in. Ever played OXYD?
\
2) Move in vector: Is there a way to like,
/ you are on an object that is looking in the
same direction as you, and when you
activate it it will simply move in the direction
it is facing in until you activate it again?

/Edward


[This message has been edited by Edward (edited March 03, 2003).]
Edward's Cognative Hazards
2003-03-02, 9:34 PM #2
Hello! I need help here!!! I'll tell you the secrets behind Fade in & Fade out in JK!

/Edward
Edward's Cognative Hazards
2003-03-03, 11:45 PM #3
HHEEEEEEEELLLLLLLOOOOOOOOOOOOO!!!!!!!!!!!!!!!
Is there anyone who can help! If not then just say so and this topic will sees to exist!
Edward's Cognative Hazards
2003-03-04, 1:53 AM #4
hmm... Push the box can be maked when you set box parent as _actor - and nothink more. It will move when you attack it or push.

I think that Cog for this will be simple


------------------
The miners of Kiith Somtaaw sacificed much, and risked all. For their efforts they were brought into the inner most circle of Hiigaren power. Naabal, S'jet, and Sobanii bowed before them. And from that day to this, Somtaaw's children have been known to one and all as Beastslayers..
2003-03-04, 2:45 AM #5
Well, got a way to like, in a split second it has changed position 10m? Like a board game.

/Edward
Edward's Cognative Hazards
2003-03-04, 8:46 AM #6
Well, you could attach a cog to the crate and apply force to it in it's damaged message.
The second cog should also be possible. Maybe GBK or Descent_pilot will give it a try...

------------------
"Häb Pfrässe, süsch chlepfts!" - The coolest language in the world (besides Cherokee)
"Häb Pfrässe, süsch chlepfts!" - The coolest language in the world (besides Cherokee)
2003-03-04, 11:34 AM #7
Making it an actor would work best. You can set it's health to -1 or 99999999 or whatever, blank out the SNDs, PUPs, etc. Then adjust the mass to make it move slower or faster when hitting it. More realistic and dynamic than having a COG move it.

------------------
Bassoon, n. A brazen instrument into which a fool blows out his brains.
2003-03-04, 11:48 AM #8
Yeah, making it an actor would be the *easiest* way.....

------------------
Createthingatpos(GBK, 0, '0 0 0', '0 0 0');
And when the moment is right, I'm gonna fly a kite.
2003-03-04, 11:58 AM #9
I need to get to Massassi more. For you request, I had a quick go at it. Here are the untested results.
Code:
# Jedi Knight Cog Script
#
# This is a level cog for the box, not a class cog
#
# [DP]
#
symbols
thing          box
float          rate=0.1
float          speed=1
int            on=0               local
vector         moveVector         local
message        activated
message        pulse
end

code
Activated:
   If(on)
   {
      SetPulse(0);
      Return;
   }
   SetPulse(rate);
   moveVector = GetThingLVec(GetLocalPlayerThing());
   Return;

Pulse:
   ApplyForce(box, VectorScale(moveVector, speed));
   Return;
end
Hope it works like ya want it to.

------------------
The Sniper Missions. Current project, The Sniper Missions

The Magician Saber System.
Major projects working on:
SATNRT, JK Pistol Mod, Aliens TC, Firearms

Completed
Judgement Day (HLP), My level pack
2003-03-04, 5:53 PM #10
Quote:
<font face="Verdana, Arial" size="2">Originally posted by GBK:
Yeah, making it an actor would be the *easiest* way.....</font>


It's also the most realistic and the most dynamic.

------------------
Bassoon, n. A brazen instrument into which a fool blows out his brains.
Bassoon, n. A brazen instrument into which a fool blows out his brains.
2003-03-04, 9:10 PM #11
Thanks! I'll try it as soon as I can. Right now I'm at school.

I'll now tell you all the secret. It is...
Edward's Cognative Hazards
2003-03-04, 9:12 PM #12
ThingLight(thing,amount,duration);

Have a scene, have no light in it, have your cameras in place, and then your first line of code will be:
Code:
ThingLight(cam1,0.0,0.01);
sleep(1);
ThingLight(cam1,10,3);
sleep(3);


/Edward
Edward's Cognative Hazards
2003-03-05, 1:09 AM #13
setthinglight not thinglight it will work better

------------------
The miners of Kiith Somtaaw sacificed much, and risked all. For their efforts they were brought into the inner most circle of Hiigaren power. Naabal, S'jet, and Sobanii bowed before them. And from that day to this, Somtaaw's children have been known to one and all as Beastslayers..
2003-03-05, 4:04 AM #14
You've done this SetThingLight before? Or is it just an improvement in MOTS?
Edward's Cognative Hazards
2003-03-05, 4:26 AM #15
HAY! the COG I got did not work! I tried it with a bed! Tell me, was that COG made for JK or MOTS? I'm using JK!

/Edward
Edward's Cognative Hazards
2003-03-05, 4:02 PM #16
Why do people always blame the cogger? sheez. Can't we all, just, get along? As stated the problem isn't me, its your choice in objects. The bed, it has a move=path in its template, what you need as a move=physics in your template. There are also a few other verbs (RotatePivot) that require the move to be a certan selection.

------------------
The Sniper Missions. Current project, The Sniper Missions

The Magician Saber System.
Major projects working on:
SATNRT, JK Pistol Mod, Aliens TC, Firearms

Completed
Judgement Day (HLP), My level pack

↑ Up to the top!