Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
parse description bug
Dec 15, 2017, 10:08 pm
By Remcon
Couple bugs
Dec 12, 2017, 5:42 pm
By Remcon
Bug in disarm( )
Nov 12, 2017, 6:54 pm
By GatewaySysop
Bug in will_fall( )
Oct 23, 2017, 1:35 am
By GatewaySysop
Bug in do_zap( ), do_brandish( )
Oct 18, 2017, 1:52 pm
By GatewaySysop
LOP 1.45
Author: Remcon
Submitted by: Remcon
LOP Heroes Edition
Author: Vladaar
Submitted by: Vladaar
Heroes sound extras
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.3
Author: Vladaar
Submitted by: Vladaar
Memwatch
Author: Johan Lindh
Submitted by: Vladaar
Users Online
CommonCrawl, Google, Yahoo!, Majestic-12

Members: 0
Guests: 11
Stats
Files
Topics
Posts
Members
Newest Member
477
3,706
19,240
608
LAntorcha
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » Codebases » SWR FUSS » ship collisions
Forum Rules | Mark all | Recent Posts

ship collisions
< Newer Topic :: Older Topic >

Pages:<< prev 1 next >>
Post is unread #1 Apr 6, 2009, 3:43 am
Go to the top of the page
Go to the bottom of the page

Samsa
Fledgling
GroupMembers
Posts15
JoinedAug 29, 2008

It seems that it is not possible for a ship to collide with another ship. Is there a reason why the code:

for ( target = ship->starsystem->first_ship; target; target = target->next_in_starsystem)
{ 
	 if ( target != ship &&
		 abs(ship->vx - target->vx) < 1 &&
		 abs(ship->vy - target->vy) < 1 &&
		 abs(ship->vz - target->vz) < 1 )
	 {
		 ship->collision = target->maxhull;
		 target->collision = ship->maxhull;
	 }                   
}


is commented out in move_ships at space.c?
       
Post is unread #2 Apr 7, 2009, 10:00 am
Go to the top of the page
Go to the bottom of the page

ayuri
Magician
GroupMembers
Posts239
JoinedJun 13, 2008

I'm not 100% on SWR but on FOTE when you orbit a planet it puts all ships in the same cords.
Example from my game:
Coruscant Starsystem

The star, Corusca Prime   0 0 0
The planet, Coruscant   -345 -987 1562

Imperious (SSD)    -345 -987 1562
Absolution (SSD)    -345 -987 1562
Requiem Mass (SSD)    -345 -987 1562
Relentless (SSD)    -345 -987 1562
Valorous (SSD)    -345 -987 1562
Freedom (SSD)    -345 -987 1562
Triton (SSD)    -345 -987 1562
Cataclysm (SSD)    -345 -987 1562
The Shining Inspiration (LSD)    -345 -987 1562
The Ebon Falcon (LSD)    -345 -987 1562
The Roan Fel (LSD)    -345 -987 1562
The Nocturne Void (ASD)    -345 -987 1562
The Fury's Serenade (ASD)    -345 -987 1562
Eetee Treekthin (GSD)    -345 -987 1562
Arda (GSD)    -345 -987 1562
Fiddler's Green (GSD)    -345 -987 1562
Enforcer soprano (GSD)    -345 -987 1562
Enforcer arda (GSD)    -345 -987 1562
Aviator Void (GSD)    -345 -987 1562


As you can see, they are all at -345 -987 1562.
From the looks of it, if that collision code was in there, everything could be destroyed. Or is that code only if you have ship targeted?

Just some food for thought, but I could be wrong.
ayuri
       
Post is unread #3 Apr 25, 2009, 9:54 pm
Go to the top of the page
Go to the bottom of the page

Banner
Magician
GroupMembers
Posts169
JoinedNov 29, 2005

I believe that had something to do with targetting another ship and there being a possibility of running into each other. It looks like it was never finished and thus commented out.
       
Pages:<< prev 1 next >>