2025-08-23 15:35 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0000445Spring engineGeneralpublic2007-03-04 06:37
ReporterFLOZi 
Assigned ToILMTitan 
PrioritynormalSeverityfeatureReproducibilityN/A
StatusclosedResolutionfixed 
Product Version 
Target VersionFixed in Version 
Summary0000445: [patch] get/set UPRIGHT for COB
DescriptionDoes exactly what it says on the tin. UPRIGHT is defined as 79.

Particularly useful for modders to override the default behaviour of hovercraft 'upright'-edness when on land.
TagsNo tags attached.
Checked infolog.txt for Errors
Attached Files
  • diff file icon getSetUpright.diff (846 bytes) 2007-02-21 21:37 -
    Index: CobInstance.cpp
    ===================================================================
    --- CobInstance.cpp	(revision 3407)
    +++ CobInstance.cpp	(working copy)
    @@ -86,6 +86,7 @@
     #define CLOAKED					76
     #define WANT_CLOAK				77
     #define GROUND_WATER_HEIGHT		78 // get land height, negative if below water
    +#define UPRIGHT				79
     
     CCobInstance::CCobInstance(CCobFile &script, CUnit *unit)
     : script(script)
    @@ -1004,6 +1005,8 @@
     		return !!unit->isCloaked;
     	case WANT_CLOAK:
     		return !!unit->wantCloak;
    +	case UPRIGHT:
    +		return !!unit->upright;
     	}
     #endif
     
    @@ -1098,6 +1101,9 @@
     	case WANT_CLOAK:
     		unit->wantCloak = !!param;
     		break;
    +	case UPRIGHT:
    +		unit->upright = !!param;
    +		break;
     	}
     #endif
     }
    @@ -1156,4 +1162,4 @@
     	if(script.scriptIndex[id]==-1)
     		return false;
     	return true;
    -}
    \ No newline at end of file
    +}
    
    diff file icon getSetUpright.diff (846 bytes) 2007-02-21 21:37 +

-Relationships
+Relationships

-Notes

~0000734

ILMTitan (reporter)

I'm not quite sure how to test this. I guess I need to learn do a little bit of scripting.

~0000738

FLOZi (reporter)

If you like I can PM you the link to the current S:44 build which has a unit which tests this (the m4a1dd)?

~0000740

ILMTitan (reporter)

Please do. Please also include under what conditions the tag is set/unset?

~0000753

ILMTitan (reporter)

Committed revision 3453.

~0000754

ILMTitan (reporter)

Committed revision 3453.
+Notes

-Issue History
Date Modified Username Field Change
2007-02-21 21:37 FLOZi New Issue
2007-02-21 21:37 FLOZi File Added: getSetUpright.diff
2007-02-24 06:38 ILMTitan Status new => assigned
2007-02-24 06:38 ILMTitan Assigned To => ILMTitan
2007-02-24 06:39 ILMTitan Note Added: 0000734
2007-02-25 01:54 FLOZi Note Added: 0000738
2007-02-25 03:37 ILMTitan Note Added: 0000740
2007-03-04 06:37 ILMTitan Note Added: 0000753
2007-03-04 06:37 ILMTitan Status assigned => closed
2007-03-04 06:37 ILMTitan Note Added: 0000754
2007-03-04 06:37 ILMTitan Resolution open => fixed
+Issue History