AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   how to attacker the monster without hitbox? (https://forums.alliedmods.net/showthread.php?t=240893)

rsdtt 05-24-2014 03:15

I mean some monster's models hitbox under its skin, when I attacker the skin part under the hitbox,

RegisterHam(Ham_TraceAttack, "func_wall", "fw_TraceAttack") dosen't work,

and the Ham_TakeDamage is same too.

it just like hit something else

sorry for my bad english , I mean the hitbox inside in its skin

DavidJr 05-24-2014 21:29

Re: how to attacker the monster without hitbox?
 
Is it NPC?

rsdtt 05-25-2014 22:22

Re: how to attacker the monster without hitbox?
 
Quote:

Originally Posted by DavidJr (Post 2142111)
Is it NPC?

no
Code:

i_Ent = engfunc(EngFunc_CreateNamedEntity,engfunc(EngFunc_AllocString,"func_wall"));
engfunc(EngFunc_SetModel,i_Ent,"models/zbs_bossl_big05.mdl");
engfunc(EngFunc_SetSize, i_Ent, Float:{ -32.0, -50.0, 0.0 }, Float:{ 32.0, 50.0, 150.0 } );
engfunc(EngFunc_SetOrigin, i_Ent, m_origin );
set_pev(i_Ent,pev_solid,SOLID_SLIDEBOX);
set_pev(i_Ent,pev_movetype,MOVETYPE_NOCLIP);


meTaLiCroSS 05-26-2014 22:55

Re: how to attacker the monster without hitbox?
 
Tracelines just hits, in case of studio model, it's hitboxes

rsdtt 05-26-2014 23:42

Re: how to attacker the monster without hitbox?
 
Quote:

Originally Posted by meTaLiCroSS (Post 2142910)
Tracelines just hits, in case of studio model, it's hitboxes

when hit the skin, just like hit steel


All times are GMT -4. The time now is 09:35.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.