Announcement

Collapse
No announcement yet.

GENERAL: For Laughs

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • GENERAL: For Laughs

    Found these while looking through the code and just had to share:

    Happy.cpp
    Code:
    void Happy::SetFullHappinessTurns(sint32 turns)
    {
    	m_fullHappinessTurns = turns;
    	m_happiness = 100;
    	m_tracker->ClearEntries(HAPPY_REASON_SMOKING_CRACK,
    							HAPPY_REASON_MAX);
    }
    in armydata.cpp
    Code:
    BOOL g_smokingCrack = TRUE;


  • #2

    Comment


    • #3
      In fscompete.cpp
      Code:
      attack_the_bastard = new GoalAttack(ai, him, pos);

      Comment


      • #4


        This looks like Winnie's variable naming style

        Comment


        • #5
          what do activision pay there programmes

          on second thought probably peanuts
          "Every time I learn something new it pushes some old stuff out of my brain" Homer Jay Simpson
          The BIG MC making ctp2 a much unsafer place.
          Visit the big mc’s website

          Comment


          • #6
            Why the hell did this post three times
            "Every time I learn something new it pushes some old stuff out of my brain" Homer Jay Simpson
            The BIG MC making ctp2 a much unsafer place.
            Visit the big mc’s website

            Comment


            • #7
              :dp
              "Every time I learn something new it pushes some old stuff out of my brain" Homer Jay Simpson
              The BIG MC making ctp2 a much unsafer place.
              Visit the big mc’s website

              Comment


              • #8
                Yeah...this has st_swithin written all over it

                Asmodean
                Im not sure what Baruk Khazad is , but if they speak Judeo-Dwarvish, that would be "blessed are the dwarves" - lord of the mark

                Comment


                • #9
                  Originally posted by The Big Mc
                  what do activision pay there programmes

                  on second thought probably peanuts
                  Obviously too much if they can afford to smoke crack?
                  Drugs are Bad - especially beer

                  But good to see the team were keeping their spirits up in those dark times - i'm sure a few more gems will be unearthed for our asmusement
                  'The very basis of the liberal idea – the belief of individual freedom is what causes the chaos' - William Kristol, son of the founder of neo-conservitivism, talking about neo-con ideology and its agenda for you.info here. prove me wrong.

                  Bush's Republican=Neo-con for all intent and purpose. be afraid.

                  Comment


                  • #10
                    Originally posted by child of Thor


                    Drugs are Bad - especially beer
                    beer is good beeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeer

                    emmm beeeeeeeeeeeeeeeeer
                    "Every time I learn something new it pushes some old stuff out of my brain" Homer Jay Simpson
                    The BIG MC making ctp2 a much unsafer place.
                    Visit the big mc’s website

                    Comment


                    • #11
                      in ui/interface/helptile.h

                      Code:
                      #ifndef  THIS_IS_MY_CONSTANT_SO_YOU_BETTER_NOT_USE_IT
                      #define  THIS_IS_MY_CONSTANT_SO_YOU_BETTER_NOT_USE_IT
                      I guess they had _some_ problems with the naming of their constants...

                      Comment


                      • #12
                        Code:
                        	if(!city.GetData()->GetCityData()->CapturedThisTurn()) {
                        		if(g_network.IsClient()) {
                        			g_network.RequestResync(RESYNC_PROBABLE_CHEATER);
                        		}
                        		return SFN_ERROR_OK;
                        	}
                        Charming
                        "Every time I learn something new it pushes some old stuff out of my brain" Homer Jay Simpson
                        The BIG MC making ctp2 a much unsafer place.
                        Visit the big mc’s website

                        Comment


                        • #13
                          Originally posted by The Big Mc
                          Code:
                          	if(!city.GetData()->GetCityData()->CapturedThisTurn()) {
                          		if(g_network.IsClient()) {
                          			g_network.RequestResync(RESYNC_PROBABLE_CHEATER);
                          		}
                          		return SFN_ERROR_OK;
                          	}
                          Charming
                          From where did you get it, Big MC? Looks like here is the reason why my City Capture options doesn't work in MP.

                          -Martin
                          Civ2 military advisor: "No complaints, Sir!"

                          Comment


                          • #14
                            Martin,

                            It's in slicfunc.cpp:

                            Code:
                            SFN_ERROR Slic_DoFreeSlaves::Call(SlicArgList *args)
                            {
                                if (args->m_numArgs > 0)
                                    return SFN_ERROR_NUM_ARGS;
                            
                            	Unit city = g_slicEngine->GetContext()->GetCity(0);
                            
                            	if(!g_theUnitPool->IsValid(city)) {
                            		return SFN_ERROR_OK;
                            	}
                            
                            	if(!city.GetData()->GetCityData()->CapturedThisTurn()) {
                            		if(g_network.IsClient()) {
                            			g_network.RequestResync(RESYNC_PROBABLE_CHEATER);
                            		}
                            		return SFN_ERROR_OK;
                            	}
                            
                            	if(g_network.IsClient()) {
                            		g_network.SendAction(new NetAction(NET_ACTION_FREE_SLAVES, city.m_id));
                            	}
                            
                                city.FreeSlaves();
                            
                                return SFN_ERROR_OK;
                            }
                            I noticed it yesterday and was going to suggest that either you or JohnBTW might want to modify it so that slaves could be freed not just on the turn that the city is captured. I couldn't find any other occurence of 'RESYNC_PROBABLE_CHEATER' in a .cpp file, but it sounds like it was intended to be some kind of defense against multiplayer cheating.

                            Comment


                            • #15
                              Yes it is the only occurence in a *.cpp file, for changing it I would like to keep the current function, when there are zero arguments. If there is one argument and it is a city the slaves should be freed.

                              And Peter why don't you play with the slic functions on your own then you might find out some usefull stuff. To alter this slic function you can basicly find everything you need in that file, just check the other functions.

                              -Martin
                              Civ2 military advisor: "No complaints, Sir!"

                              Comment

                              Working...
                              X