Traveling [message #273156] |
Sat, 14 July 2007 09:39 |
|
jnz
Messages: 3396 Registered: July 2006 Location: 30th century
Karma: 0
|
General (3 Stars) |
|
|
It is possible to make an object travel somewhere instead of teleporting it? I also need to change the mass of a vehicle, server side, I can't find anything to set it, only get it.
All C++, btw, no level edit.
[Updated on: Sat, 14 July 2007 09:40] Report message to a moderator
|
|
|
|
Re: Traveling [message #273165 is a reply to message #273156] |
Sat, 14 July 2007 10:32 |
|
futura83
Messages: 1285 Registered: July 2006 Location: England
Karma: 0
|
General (1 Star) Viva la Resistance! |
|
|
Although i don't know C++, maybe you could get it to teleport along the path you want it to go, instead of from point A to point B...but would that use too many resources?
This is a signature. Reading this is wasting your time.
|
|
|
|
|
|
|
|
Re: Traveling [message #273271 is a reply to message #273156] |
Sat, 14 July 2007 21:08 |
|
Oblivion165
Messages: 3468 Registered: June 2003 Location: Hendersonville, North Car...
Karma: 0
|
General (3 Stars) |
|
|
I always wanted to make a time travel script. One that records everything that has health to 10 slots.
Every minute it takes a snapshot of all the health/buildings/XYZ and put it in a slot of 10.
Slot1: 1:00 minutes in
Slot2: 2:00 minutes in
...
Slot10: 10:00 minutes in
Then when it goes past 10 minutes in it goes back to slot 1:
Slot1: 11:00 minutes in
Then when a time beacon is triggered it will got back 5 minutes or something and everything will be warped back to that slot's state.
WOL: Ob165ion Skype: Oblivion165 Yahoo Instant Messenger: CaptainJohn165
|
|
|
|
|
Re: Traveling [message #273347 is a reply to message #273343] |
Sun, 15 July 2007 07:40 |
dead6re
Messages: 602 Registered: September 2003
Karma: 0
|
Colonel |
|
|
Jerad Gray wrote on Sun, 15 July 2007 09:47 |
Oblivion165 wrote on Sat, 14 July 2007 22:08 | I always wanted to make a time travel script. One that records everything that has health to 10 slots.
Every minute it takes a snapshot of all the health/buildings/XYZ and put it in a slot of 10.
Slot1: 1:00 minutes in
Slot2: 2:00 minutes in
...
Slot10: 10:00 minutes in
Then when it goes past 10 minutes in it goes back to slot 1:
Slot1: 11:00 minutes in
Then when a time beacon is triggered it will got back 5 minutes or something and everything will be warped back to that slot's state.
|
That would be awesome, and completely possible. As for teleporting a object down a path, as it will move through walls and fall off the level.
|
What you could do for this is make a vector and a custom structure that records all of this information. The problem would occur with buildings that have been destroyed as you cannot set them back "100%".
As for the orginal problem in this thread, surely you can run a timer for an inaimate object to move it using the scripts. I know this would be intensive, but this would be how orginally it will have been done for aimiate objects.
Let all your wishes be granted except one, so you will still have something to strieve for.
|
|
|
|
|
Re: Traveling [message #273411 is a reply to message #273156] |
Sun, 15 July 2007 13:10 |
dead6re
Messages: 602 Registered: September 2003
Karma: 0
|
Colonel |
|
|
Lagging resources? The problem with lag is often to do with incorrect settings on the server. The NUR for example is resposible for how often the game sends intructions to the client per second.
Try building a loop, and don't worry about resources. Take AI, It calculates and returns results depening on the NUR.
There is some relation between the SFPS and the NUR, but StealthEye should know more.
Let all your wishes be granted except one, so you will still have something to strieve for.
|
|
|
Re: Traveling [message #273422 is a reply to message #273156] |
Sun, 15 July 2007 13:32 |
|
jnz
Messages: 3396 Registered: July 2006 Location: 30th century
Karma: 0
|
General (3 Stars) |
|
|
Well SFPS is just how many times the server updates itself in a loop. EG:
while(1)
{
Sleep(1000);
}
that would be going at 1 SFPS. So the NUR is never going to be higher than the SFPS. The other reason i don't want a loop is because it look awful and doesn't detect collisions.
[Updated on: Sun, 15 July 2007 13:32] Report message to a moderator
|
|
|