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 03-25-2013, 06:30 AM   #1   Add To Ignore List  
bad avatar edition
 
T-ReXx's Avatar
 
Joined: Dec 2012
Location: Croatia
 
T-ReXx is offline
Default Coding help needed

So, I know shitloads of you guys know how to mod this game like a boss, so I wondered should I ask you for help. Bassically, I just want to make a few things like items being on the floor, not levitating, and to add a same weapon that has the same behavior like the original weapon, just with a different model. So, any help?
__________________
I'm T-ReXx, otherwise known as Solid Snake.
I used to mod the classic Sams but now I just shitpost. If you need to contact me for whatever reason, please use one of the apps listed on my Steam account (link above).

The hand has five fingers, capable and powerful,
with the ability to destroy as well as create.
Open your eyes, open your mouths,
Close your hands and make a fist.


22:06 - ♠T-ReXx: it's bain's amazing trap
22:06 - ♠Jetroid: Is it amazing?
22:06 - ♠T-ReXx: no
  Reply With Quote
Old 03-25-2013, 12:12 PM   #2   Add To Ignore List  
🐱 Kitty 💘💙💚💛💜
 
Scratch's Avatar
 
Crackshell Developer
Joined: May 2007
Location: Heiloo, Netherlands
 
Scratch is offline
Default Re: Coding help needed

You're really making me want to write some guides.

Your first thing is rather easy to accomplish, but it will require you to do some changes to world files (depending on what you want to do, if you're making new levels, this is not an issue, otherwise you'll have to re-save levels in the editor for it to take effect).

In WeaponItem.es, there's this code:
Code:
  Main()
  {
    if ( m_EwitType==WIT_GHOSTBUSTER) {
      m_EwitType=WIT_LASER;
    }

    Initialize();     // initialize base class
    StartModelAnim(ITEMHOLDER_ANIM_BIGOSCILATION, AOF_LOOPING|AOF_NORESTART);
    ForceCollisionBoxIndexChange(ITEMHOLDER_COLLISION_BOX_BIG);
    SetProperties();  // set properties
Just comment out the call to StartModelAnim, then go into the editor and place a new weapon (or resave an existing level). Do the same for every other item you want.

I'm sure there's an even easier way which involves stopping the ITEMHOLDER_ANIM_* on entity boot in level, but the way described above is the most straight forward.

Making new weapons requires some more "major" changes to entity code. To get an idea of how it works, try searching for commented out Ghostbuster code. (Note, to get the ghostbuster to work you actually have to write a bit of code yourself, since Croteam didn't just comment out everything, they randomly deleted some things as well. )
__________________
I'm a cat by the way. I'm also everyone's most hated critic.
(Opinions expressed are my own)

Nimble Writer - now available on Steam, Itch.io.
CodeCat, my blog that I need to update - I also have a showcase, which I barely update.
(I do not respond to PM's about Serious Sam Revolution or Bogus Detour. Please use the appropriate community hubs for that.)
  Reply With Quote
Old 03-25-2013, 03:58 PM   #3   Add To Ignore List  
bad avatar edition
 
T-ReXx's Avatar
 
Joined: Dec 2012
Location: Croatia
 
T-ReXx is offline
Default Re: Coding help needed

Thanks Angelo!
__________________
I'm T-ReXx, otherwise known as Solid Snake.
I used to mod the classic Sams but now I just shitpost. If you need to contact me for whatever reason, please use one of the apps listed on my Steam account (link above).

The hand has five fingers, capable and powerful,
with the ability to destroy as well as create.
Open your eyes, open your mouths,
Close your hands and make a fist.


22:06 - ♠T-ReXx: it's bain's amazing trap
22:06 - ♠Jetroid: Is it amazing?
22:06 - ♠T-ReXx: no
  Reply With Quote
Old 04-07-2013, 12:33 AM   #4   Add To Ignore List  
The Purple Cat
 
Buzzy's Avatar
 
Joined: Dec 2008
 
Buzzy is offline
Default Re: Coding help needed

Is that how you can get the ghostbuster working. Thanks angelo.
So that's why the ghostbuster keeps on changing to the laser when I select it!
  Reply With Quote
Old 04-07-2013, 08:10 AM   #5   Add To Ignore List  
🐱 Kitty 💘💙💚💛💜
 
Scratch's Avatar
 
Crackshell Developer
Joined: May 2007
Location: Heiloo, Netherlands
 
Scratch is offline
Default Re: Coding help needed

Quote:
Originally Posted by Buzzy View Post
Is that how you can get the ghostbuster working. Thanks angelo.
So that's why the ghostbuster keeps on changing to the laser when I select it!
You need to make a lot more changes for it to actually work, but yes, removing that obsolete check is part of the changes.
__________________
I'm a cat by the way. I'm also everyone's most hated critic.
(Opinions expressed are my own)

Nimble Writer - now available on Steam, Itch.io.
CodeCat, my blog that I need to update - I also have a showcase, which I barely update.
(I do not respond to PM's about Serious Sam Revolution or Bogus Detour. Please use the appropriate community hubs for that.)
  Reply With Quote
Old 04-08-2013, 02:20 AM   #6   Add To Ignore List  
The Purple Cat
 
Buzzy's Avatar
 
Joined: Dec 2008
 
Buzzy is offline
Default Re: Coding help needed

Great! I hope to get it working some time after looking a little..
  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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Coding tutorial Mkbewe Serious Sam Classic SDK 35 06-24-2013 09:47 AM
SERIOUS Help needed Brony Serious Sam 3 2 03-12-2013 03:06 AM
SS3 Server Assistance Needed GeekLoco Serious Sam 3 4 12-06-2011 11:22 AM


All times are GMT -4. The time now is 09:14 AM.