Seriously!

Go Back   Seriously! Forums > Serious Sam Series > Serious Sam Classic > Serious Sam Classic Workshop > Serious Sam Classic SDK

Serious Sam Classic SDK Discuss coding ideas & problems or show tutorials and code snippets.

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 08-11-2009, 08:24 AM   #1   Add To Ignore List  
The Purple Cat
 
Buzzy's Avatar
 
Joined: Dec 2008
 
Buzzy is offline
Default finding 2 things help!

Where can you find two things on c++:

1. When you input the cheat "Killall" it also kills my new enemy i put in.

2. Where can you find where you set weapons ammo such as my weapon has 300 ammo (for normal difficulty)!!!

I can't seem to find it
  Reply With Quote
Old 08-11-2009, 09:35 AM   #2   Add To Ignore List  
Supreme Commander
 
XMR1's Avatar
 
Joined: Nov 2007
Location: Germany
 
XMR1 is offline Send a message via ICQ to XMR1 Send a message via MSN to XMR1
Default Re: finding 2 things help!

1. Open the Player.es file and search for "static void KillAllEnemies" (without the "), it's pretty much at the top of the file. This is the method, killing all enemies (might also be used by the serious bomb, not only by the cheat).

2.Search for "// ammo for all weapons" without the ", in PlayerWeapon.es. The first occurence of it sets the ammo.
Also search for "// default ammo pack size" (again without the "), you there can define how much ammo a single backpack adds.
Also search for: "// clamp ammounts of all ammunition to maximum values", "// add default ammount of ammunition when receiving a weapon"
and a shitload more of stuff, so basicly go through the total PlayerWeapon.es file, it's all in there.
HTH
__________________
website |xmr1.bplaced.net

Last edited by XMR1; 08-11-2009 at 09:39 AM.
  Reply With Quote
Old 08-11-2009, 08:02 PM   #3   Add To Ignore List  
The Purple Cat
 
Buzzy's Avatar
 
Joined: Dec 2008
 
Buzzy is offline
Default Re: finding 2 things help!

With this code area, could you replace, for example 'm_iMaxSludge' with your max ammo instead?

Code:
{
    switch (m_iCurrentWeapon) {
      case WEAPON_KNIFE:           return 0;
      case WEAPON_COLT:            return 6;
      case WEAPON_DOUBLECOLT:      return 6;
      case WEAPON_SINGLESHOTGUN:   return m_iMaxShells;
      case WEAPON_DOUBLESHOTGUN:   return m_iMaxShells;
      case WEAPON_TOMMYGUN:        return m_iMaxBullets;
      case WEAPON_MINIGUN:         return m_iMaxBullets;
      case WEAPON_ROCKETLAUNCHER:  return m_iMaxRockets;
      case WEAPON_GRENADELAUNCHER: return m_iMaxGrenades;
      case WEAPON_SNIPER:          return m_iMaxSniperBullets;
      case WEAPON_FLAMER:          return m_iMaxNapalm;
      case WEAPON_CHAINSAW:        return m_iMaxNapalm;
      case WEAPON_LASER:           return m_iMaxElectricity;
      case WEAPON_IRONCANNON:      return m_iMaxIronBalls;
	  case WEAPON_BIORIFLE:        return m_iMaxSludge;
      case WEAPON_STINGER:         return m_iMaxStingbox;
      case WEAPON_PULSERIFLE:      return m_iMaxEnergy;
    }
  Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:16 PM.