Author Topic: Making Q2 SP mod, code fails to compile  (Read 12497 times)

Offline EmeraldTiger

  • Jr. Member
  • **
  • Posts: 78
    • View Profile
  • Rated:
Re: Making Q2 SP mod, code fails to compile
« Reply #30 on: March 25, 2011, 03:58:53 PM »
I`ll be... it`s actually working! Thanks so much QwazyWabbit! If it weren`t for you I would have never got this annoying problem fixed!

Only thing now is that I need to find out how to define the knockback.

Here`s some brownies for you:


Enjoy!
« Last Edit: March 25, 2011, 04:00:27 PM by EmeraldTiger »
  • Insightful
    Informative
    Funny
    Nice Job / Good Work
    Rock On
    Flawless Logic
    Well-Reasoned Argument and/or Conclusion
    Demonstrates Exceptional Knowlege of the Game
    Appears Not to Comprehend Game Fundamentals
    Frag of the Week
    Frag Hall of Fame
    Jump of the Week
    Jump Hall of Fame
    Best Solution
    Wins The Internet
    Whoosh! You done missed the joke thar Cletus!
    Obvious Troll Is Obvious
    DO YOU EVEN LIFT?
    DEMO OR STFU
    Offtopic
    Flamebait
    Redundant
    Factually Challenged
    Preposterously Irrational Arguments
    Blindingly Obvious Logical Fallacies
    Absurd Misconstrual of Scientific Principles or Evidence
    Amazing Conspiracy Theory Bro
    Racist Ignoramus

Offline EmeraldTiger

  • Jr. Member
  • **
  • Posts: 78
    • View Profile
  • Rated:
Re: Making Q2 SP mod, code fails to compile
« Reply #31 on: March 25, 2011, 04:50:27 PM »
I found this tutorial, which seems to be most like what I want to do:

http://webadvisor.aupr.edu/noc/Othertutorials/qdevels/-%20Push'em%20Around%20.html

While it does mention how to put it in g_cmds.c, which I successfully managed, it never told me how to implement the function in a weapon, which makes it rather confusing. How can I take the function he describes here and put it in a weapon?

I also want to work on the Conservation power-up (prevents you from using up ammo) next, so if anyone knows how I could get around to implementing that, that`d be great.
« Last Edit: March 25, 2011, 05:05:00 PM by EmeraldTiger »
  • Insightful
    Informative
    Funny
    Nice Job / Good Work
    Rock On
    Flawless Logic
    Well-Reasoned Argument and/or Conclusion
    Demonstrates Exceptional Knowlege of the Game
    Appears Not to Comprehend Game Fundamentals
    Frag of the Week
    Frag Hall of Fame
    Jump of the Week
    Jump Hall of Fame
    Best Solution
    Wins The Internet
    Whoosh! You done missed the joke thar Cletus!
    Obvious Troll Is Obvious
    DO YOU EVEN LIFT?
    DEMO OR STFU
    Offtopic
    Flamebait
    Redundant
    Factually Challenged
    Preposterously Irrational Arguments
    Blindingly Obvious Logical Fallacies
    Absurd Misconstrual of Scientific Principles or Evidence
    Amazing Conspiracy Theory Bro
    Racist Ignoramus

Offline EmeraldTiger

  • Jr. Member
  • **
  • Posts: 78
    • View Profile
  • Rated:
Re: Making Q2 SP mod, code fails to compile
« Reply #32 on: March 25, 2011, 07:41:39 PM »
Well I`ve been using slugs for the ammo so I decided to add a new ammo type, but my compiler is so picky! I added the definition, the prototypes in g_local.h, and even defined things like max ammo, etc. why is it that even though I "follow the rules" it doesn`t obey?

I`m thinking of making a new thread where people can help me out with coding. I`ll implement the code myself but I will definitely need help all the way to define functions, etc. to complete the mod (unless someone is willing to contribute their code, then all you need is the concepts)
« Last Edit: March 25, 2011, 07:46:38 PM by EmeraldTiger »
  • Insightful
    Informative
    Funny
    Nice Job / Good Work
    Rock On
    Flawless Logic
    Well-Reasoned Argument and/or Conclusion
    Demonstrates Exceptional Knowlege of the Game
    Appears Not to Comprehend Game Fundamentals
    Frag of the Week
    Frag Hall of Fame
    Jump of the Week
    Jump Hall of Fame
    Best Solution
    Wins The Internet
    Whoosh! You done missed the joke thar Cletus!
    Obvious Troll Is Obvious
    DO YOU EVEN LIFT?
    DEMO OR STFU
    Offtopic
    Flamebait
    Redundant
    Factually Challenged
    Preposterously Irrational Arguments
    Blindingly Obvious Logical Fallacies
    Absurd Misconstrual of Scientific Principles or Evidence
    Amazing Conspiracy Theory Bro
    Racist Ignoramus

 

El Box de Shoutamente

Last 10 Shouts:

 

|iR|Focalor

July 04, 2025, 06:33:05 AM
 

RyU

June 29, 2025, 06:27:46 PM
Q2 must never die  :)
 

|iR|Focalor

May 26, 2025, 01:17:30 PM
 

-Unh0ly-

May 22, 2025, 05:45:28 PM
 

Yotematoi

May 17, 2025, 08:33:15 AM
Yo desde el año 2007 me enfermé de Q2, es incurable  
Morir y revivir es costumbre, lástima q el QT estaba bueno
 

ImperiusDamian

May 12, 2025, 01:45:35 AM
Quake II is not 27 years old. I refuse to accept THAT much time has gone by.
 

|iR|Focalor

May 11, 2025, 02:33:39 PM
 

-Unh0ly-

May 03, 2025, 08:02:46 AM
198.179.6.200:30634
 

Yotematoi

May 02, 2025, 10:27:47 AM
Note for Player-4109 "Remember, the Guinness Book of Records does not include cowards who shot at someone by treachery." :D

Show 50 latest
Welcome, Guest. Please login or register.
July 07, 2025, 02:49:57 PM

Login with username, password and session length