Forum Rules

  • No flaming or derogatory remarks, directly or through insinuation.
  • No discussion, sharing or referencing illegal software such as hacks, keygen, cracks and pirated software.
  • No offensive contents, including but not limited to, racism, gore or pornography.
  • No excessive spam/meme, i.e. copious one liners in a short period of time, typing with all caps or posting meme responses (text/image).
  • No trolling, including but not limited to, flame incitation, user provocation or false information distribution.
  • No link spamming or signature advertisements for content not specific to Dota 2.
  • No Dota 2 key requests, sell, trade etc.
  • You may not create multiple accounts for any purpose, including ban evasion, unless expressly permitted by a moderator.

  • Please search before posting. One thread per issue. Do not create another thread if there is an existing one already.
  • Before posting anything, make sure you check out all sticky threads (e.g., this). Do not create new threads about closed ones.
  • It is extremely important that you post in correct forum section.

  • Balance discussion only in Misc.
  • All art related (such as hero model) feedbacks go to Art Feedback Forum.
  • All matchmaking feedback should go here: Matchmaking Feedback
  • All report/low priority issues should go here: Commend/Report/Ban Feedback
  • No specific workshop item feedback. These should go to workshop page of that item.
  • When posting in non-bugs section (such as this), use [Bugs], [Discussion] or [Suggestion] prefix in your thread name.

In case you object some action by a moderator, please contact him directly through PM and explain your concerns politely. If you are still unable to resolve the issue, contact an administrator. Do not drag these issues in public.

All rules are meant to augment common sense, please use them when not conflicted with aforementioned policies.
See more
See less

Material group resets to default

  • Filter
  • Time
  • Show
Clear All
new posts

  • Material group resets to default

    Unit loses setted material group when affected by skill (es fissure, bristle's spray, tide's smash etc.)

    Datadriven class of unit is full copy of npc_dota_greevil except baseClass changed to npc_dota_creature. Also unit have AttachWearables block.

    Lua code:
    local greevil = CreateUnitByName("npc_dota_greevil_custom", vSpawnLocation, true, nil, nil, nTeam );

    Full code of datadriven class
    		// General
    		"BaseClass"					"npc_dota_creature"		// Class of entity of link to.
    		"Model"						"models\courier\greevil\greevil.mdl"	// Model.
    		"SoundSet"					"Greevil"										// Name of sound set.
    		"ModelScale"				"1"
    		// "AnimationModifier"			"miniboss"
    		"MinimapIconSize"			"1"
    		// Abilities
    		"Ability1"					""			// Ability 1.
    		"Ability2"					""			// Ability 2.
    		"Ability3"					""			// Ability 3.
    		"Ability4"					""			// Ability 4.
    		// Armor
    		"ArmorPhysical"				"1"		// Physical protection.
    		"MagicalResistance"			"1"		// Magical protection.
    		// Attack
    		"AttackCapabilities"		"DOTA_UNIT_CAP_NO_ATTACK"
    		// "AttackDamageMin"			"31"		// Damage range min.
    		// "AttackDamageMax"			"34"		// Damage range max.	
    		// "AttackRate"				"1.8"		// Speed of attack.
    		// "AttackAnimationPoint"		"0.5"		// Normalized time in animation cycle to attack.
    		// "AttackAcquisitionRange"	"600"		// Range within a target can be acquired.
    		// "AttackRange"				"128"		// Range within a target can be attacked.
    		// Bounty
    		"BountyXP"					"0"		// Experience earn.
    		"BountyGoldMin"				"0"		// Gold earned min.
    		"BountyGoldMax"				"0"		// Gold earned max.
    		// Bounds
    		"RingRadius"				"55"
    		"HealthBarOffset"			"170"
    		"BoundsHullName"			"DOTA_HULL_SIZE_REGULAR"	
    		// Movement
    		"MovementCapabilities"		"DOTA_UNIT_CAP_MOVE_GROUND"			// Type of locomotion - ground, air
    		"MovementSpeed"				"300"								// Speed
    		"MovementTurnRate"			"0.4"								// Turning rate.
    		// Status
    		"StatusHealth"				"600"		// Base health.
    		"StatusHealthRegen"			"5"			// Health regeneration rate.
    		"StatusMana"				"600"		// Base mana.
    		"StatusManaRegen"			"5"			// Mana regeneration rate.
    		// Team
    		"TeamName"					"DOTA_TEAM_NEUTRALS"
    		"CombatClassAttack"			"DOTA_COMBAT_CLASS_ATTACK_HERO"
    		"CombatClassDefend"			"DOTA_COMBAT_CLASS_DEFEND_HERO"
    		// Vision
    		"VisionDaytimeRange"		"1800"		// Range of vision during day light.
    		"VisionNighttimeRange"		"800"		// Range of vision at night time.
    			    "Wearable1" { "ItemDef" "10072" } 
    			    "Wearable2" { "ItemDef" "10073" } 
    			    "Wearable3" { "ItemDef" "10075" } 
    			    "Wearable4" { "ItemDef" "10078" } 
    			    "Wearable5" { "ItemDef" "10081" } 
    		    	    "Wearable6" { "ItemDef" "10084" } 
    		    	    "Wearable7" { "ItemDef" "10087" } 
    		    	    "Wearable8" { "ItemDef" "10090" } 

  • #2
    This might be entirely wrong but I speculate that this might have something to do with certain abilities that create status effects on models. There could be some sort of incompatibility that doesn't allow for status effects to render on top of models that use several different skins. It could also be related to how you got the material groups to work in the first place, or what type of unit you're using. Again, just speculating. I'm not sure how this would be fixed, but good luck!


    • #3
      Got it. The problem is wrong extension ".mdl" instead of "vmdl" (in npc_units.. txt file). Just fix to second one and all works fine.
      Last edited by; 10-21-2017, 02:12 PM.