2019-12-12 08:06 CET

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0000693Spring engineGeneralpublic2007-11-22 22:55
ReporterKDR_11k 
Assigned Toimbaczek 
PrioritynormalSeverityfeatureReproducibilityN/A
StatusresolvedResolutionfixed 
Product Version 
Target VersionFixed in Version 
Summary0000693: [patch] alwaysVisible tag for weapons
DescriptionThis patch adds the tag alwaysVisible for weapons that makes the projectile visible even without LOS.
TagsNo tags attached.
Checked infolog.txt for Errors
Attached Files
  • patch file icon weaponAlwaysVisible.patch (2,073 bytes) 2007-11-21 15:20 -
    Index: Lua/LuaWeaponDefs.cpp
    ===================================================================
    --- Lua/LuaWeaponDefs.cpp	(revision 4848)
    +++ Lua/LuaWeaponDefs.cpp	(working copy)
    @@ -343,6 +343,7 @@
     	HSTR_PUSH_NUMBER(L, "alphaDecay",  v.alphaDecay);
     	HSTR_PUSH_NUMBER(L, "separation",  v.separation);
     	HSTR_PUSH_BOOL  (L, "noGap",       v.noGap);
    +	HSTR_PUSH_BOOL  (L, "alwaysVisible",v.alwaysVisible);
     	return 1;
     //	CColorMap *colorMap;
     //	AtlasedTexture *texture1;
    Index: Sim/Projectiles/WeaponProjectiles/WeaponProjectile.cpp
    ===================================================================
    --- Sim/Projectiles/WeaponProjectiles/WeaponProjectile.cpp	(revision 4848)
    +++ Sim/Projectiles/WeaponProjectiles/WeaponProjectile.cpp	(working copy)
    @@ -89,6 +89,8 @@
     		if(weaponDef->interceptedByShieldType) {
     			interceptHandler.AddShieldInterceptableProjectile(this);
     		}
    +		
    +		alwaysVisible = weaponDef->visuals.alwaysVisible;
     
     		if(!weaponDef->visuals.modelName.empty()){
     			S3DOModel* model = modelParser->Load3DO(string("objects3d/")+weaponDef->visuals.modelName,1,colorTeam);
    Index: Sim/Weapons/WeaponDefHandler.cpp
    ===================================================================
    --- Sim/Weapons/WeaponDefHandler.cpp	(revision 4848)
    +++ Sim/Weapons/WeaponDefHandler.cpp	(working copy)
    @@ -112,6 +112,7 @@
     	wd.noSelfDamage = wdTable.GetBool("noSelfDamage", false);
     	wd.visuals.modelName = wdTable.GetString("model", "");
     	wd.visuals.smokeTrail = wdTable.GetBool("smokeTrail", false);
    +	wd.visuals.alwaysVisible = wdTable.GetBool("alwaysVisible", false);
     
     	wd.waterweapon   = wdTable.GetBool("waterWeapon",     false);
     	wd.fireSubmersed = wdTable.GetBool("fireSubmersed",   wd.waterweapon);
    Index: Sim/Weapons/WeaponDefHandler.h
    ===================================================================
    --- Sim/Weapons/WeaponDefHandler.h	(revision 4848)
    +++ Sim/Weapons/WeaponDefHandler.h	(working copy)
    @@ -166,6 +166,8 @@
     		float sizeDecay;
     		float separation;
     		bool noGap;
    +		
    +		bool alwaysVisible;
     	};
     	Visuals visuals;
     
    
    patch file icon weaponAlwaysVisible.patch (2,073 bytes) 2007-11-21 15:20 +

-Relationships
+Relationships

-Notes

~0001462

imbaczek (reporter)

committed in r4863. thanks.
+Notes

-Issue History
Date Modified Username Field Change
2007-11-21 15:20 KDR_11k New Issue
2007-11-21 15:20 KDR_11k File Added: weaponAlwaysVisible.patch
2007-11-22 22:55 imbaczek Status new => resolved
2007-11-22 22:55 imbaczek Resolution open => fixed
2007-11-22 22:55 imbaczek Assigned To => imbaczek
2007-11-22 22:55 imbaczek Note Added: 0001462
+Issue History