Author Topic: New cheat code?  (Read 3354 times)

0 Members and 4 Guests are viewing this topic.

Offline Kopachris

  • 28
  • send penguins
    • Steam
    • Twitter
I just downloaded the source code, and was looking through it in XCode for cheats, and I found this:
Code: [Select]
// change player ship to next flyable type
case KEY_DEBUGGED + KEY_RIGHT:
debug_cycle_player_ship(1);
break;

// change player ship to previous flyable ship
case KEY_DEBUGGED + KEY_LEFT:
debug_cycle_player_ship(-1);
break;

// cycle target to ship
case KEY_DEBUGGED + KEY_SHIFTED + KEY_RIGHT:
debug_cycle_targeted_ship(1);
break;

// cycle target to previous ship
case KEY_DEBUGGED + KEY_SHIFTED + KEY_LEFT:
debug_cycle_targeted_ship(-1);
break;

// change species of the targeted ship
case KEY_DEBUGGED + KEY_S: {
if ( Player_ai->target_objnum < 0 )
break;

object *objp;
ship_info *sip;

objp = &Objects[Player_ai->target_objnum];
if ( objp->type != OBJ_SHIP )
return;

sip = &Ship_info[Ships[objp->instance].ship_info_index];
sip->species++;

if (sip->species >= (int)Species_info.size())
sip->species = 0;

HUD_sourced_printf(HUD_SOURCE_HIDDEN, XSTR( "Species of target changed to: %s", 24), Species_info[sip->species].species_name);
break;
}

Does this mean we'll soon be able to change our ship just like we can change our weapons?  Maybe so we can fly cruisers (would require a table edit...)?  All of this is in keycontrol.cpp.
« Last Edit: March 30, 2008, 03:44:22 pm by Kopachris »
----
My Bandcamp | Discord: Kopachris | My GitHub

 

Offline Polpolion

  • The sizzle, it thinks!
  • 211
Cheating. Kills. Babies.


Don't do it.

 

Offline Hades

  • FINISHING MODELS IS OVERRATED
  • 212
  • i wonder when my polycounts will exceed my iq
    • Skype
    • Steam
Cheating. Kills. Babies.


Don't do it.
He can do it if he wants.
[22:29] <sigtau> Hello, #hard-light?  I'm trying to tell a girl she looks really good for someone who doesn't exercise.  How do I word that non-offensively?
[22:29] <RangerKarl|AtWork> "you look like a big tasty muffin"
----
<batwota> wouldn’t that mean that it’s prepared to kiss your ass if you flank it :p
<batwota> wow
<batwota> KILL

 

Offline TopAce

  • Stalwart contributor
  • 212
  • FREDder, FSWiki editor, and tester
...Maybe so we can fly cruisers (would require a table edit...)?...

You already can with FSO. Theoretically.
My community contributions - Get my campaigns from here.

I already announced my retirement twice, yet here I am. If I bring up that topic again, don't believe a word.

 

Offline Polpolion

  • The sizzle, it thinks!
  • 211
Cheating. Kills. Babies.


Don't do it.
He can do it if he wants.

I could go on a killing rampage with several gernades and a christmas tree, if I wanted to as well. But I don't. Even if I want to.


And AFAIK the only thing limiting you from flying capships is the fact that they're not allowed in mission select. Just make a mission where you can press a button and change your ship to whatever. That's not hard.

EDIT: Out of curiosity, are the ship flags "Player ship" and "cruiser" mutually exclusive?

 

Offline Kopachris

  • 28
  • send penguins
    • Steam
    • Twitter
I'm not totally sure, but I think that even with the cheat above, you can only switch to ships that have the "player ship" flag.  To fly a cruiser, you'd need to make all the ships playable, and either make a mission that uses it, or use the cheat.  The former would be useful for a Star Trek mod.  Have little shuttle-pod fighters, but you get to pilot the Enterprise.

And cheating does not kill babies, or puppies, or kittens, or anything else except time.  Cheat codes were originally meant as a debugging tool for developers.  It's usually kept as something for the player to discover.  In Freespace, it's useful for both testing new builds of the SCP, and for testing mods.  Cheats are fun to use after you've already beaten the game without cheats, which I already have.
----
My Bandcamp | Discord: Kopachris | My GitHub

 

Offline Talon 1024

  • 29
  • How do you turn this on?
    • Mods, Games, and Stuff
Cheating. Kills. Babies.


Don't do it.

No it doesn't.  You can legitimately cheat if you want to test the functionality of something you just made, or if you *REALLY* suck at the game.  But otherwise, you shouldn't do it.  It's your choice anyway...
To understand religion, you need to understand morality first. | WCSaga website | WCSaga Forum | 158th website | 158th forum | Project Leader: WC: Hostile Frontier | WCHF Thread at CIC | Wing Blender | Twist of Fate | Multipart turrets on angled surfaces, tutorial included. | My Google Drive stuff | To convert speeds from WC to WCS, multiply both the cruise speed and the Afterburner speed by 0.15625 (5/32)

FS2 Mods I'm waiting on: Inferno 10th Anniversary
Current Project: Contestant Android app, Learn4Life iOS app, Blender Commander (importer).
The FreeSpace Font Foundry is back in action!

 

Offline Polpolion

  • The sizzle, it thinks!
  • 211
You can legitamatly FRED a quality test mission quicker than coders can get this functioning properly. It'd be useful if you're developing the engine from the ground up for the first time, but none of us are doing that.

 

Offline Kopachris

  • 28
  • send penguins
    • Steam
    • Twitter
Shouldn't it be fairly simple to code if the weapons and ships are selected in the same way?  Just switch the same way as the weapons are switched and redraw.

The funny part about this is that a while back, when I was still a real n00b, I put a post on the old SCP forums asking if they could do this.  They said no, but they seem to be working on it anyway.
----
My Bandcamp | Discord: Kopachris | My GitHub

 
Why exactly do you want this cheat? To fly capships?

What's the fun in that?
Fun while it lasted.

Then bitter.

 

Offline WMCoolmon

  • Purveyor of space crack
  • 213
AFAIK, I've fixed everything you ought to need to fly capships, and it's been that way for years, but no one has ever bothered to make a mission where you do it. :doubt:
-C

 

Offline IPAndrews

  • Disgruntled Customer
  • 212
  • This site stole my work
AFAIK, I've fixed everything you ought to need to fly capships, and it's been that way for years, but no one has ever bothered to make a mission where you do it. :doubt:

Really? Fixed in 3.6.9? You ought to advertise this stuff man  :)
Be warned: This site's admins stole 100s of hours of my work. They will do it to you.

  

Offline Kopachris

  • 28
  • send penguins
    • Steam
    • Twitter
Yes!  Freighter training mission, here I come!  (Speaking of which, any way for a player in a Freighter to dock with cargo?)
----
My Bandcamp | Discord: Kopachris | My GitHub

 
Nothing you can't do with ai-control-ship (or whatever the exact expression is) SEXP, and make the player ship dock with the cargo.
Fun while it lasted.

Then bitter.

 

Offline Turey

  • Installer dude
  • 211
  • The diminutive form of Turambar.
    • FreeSpace Open Installer Homepage
AFAIK, I've fixed everything you ought to need to fly capships, and it's been that way for years, but no one has ever bothered to make a mission where you do it. :doubt:

Including the HUD overflow when too many subsystems are damaged?
Creator of the FreeSpace Open Installer.
"Calm. The ****. Down." -Taristin
why would an SCP error be considered as news? :wtf: *smacks Cobra*It's a feature.

 

Offline WMCoolmon

  • Purveyor of space crack
  • 213
That's exactly what I'm thinking of...and I know that capital ships were working in the tech room, and I haven't intentionally touched them since then. IIRC, somebody - me or Goober - modified the turret code so that multiple turrets on the player ship should fire.
-C