AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Attacked entity spawned spark ( no damage entity ) (https://forums.alliedmods.net/showthread.php?t=183304)

Alexander.3 04-20-2012 11:22

Attacked entity spawned spark ( no damage entity )
 
Attacked entity spawned spark ( no damage entity )
Please tell me how to fix it

http://www.youtube.com/watch?v=7lwbqc3cTmI

claudiuhks 04-20-2012 11:45

Re: Attacked entity spawned spark ( no damage entity )
 
Quote:

Originally Posted by Alexander.3 (Post 1692971)
Attacked entity spawned spark ( no damage entity )
Please tell me how to fix it

http://www.youtube.com/watch?v=7lwbqc3cTmI

What do you want to fix?

Alexander.3 04-20-2012 11:52

Re: Attacked entity spawned spark ( no damage entity )
 
Remove the spark. The video is shown.

Attacked in front of the model, sparks fly and will not cause damage entity.

claudiuhks 04-20-2012 12:04

Re: Attacked entity spawned spark ( no damage entity )
 
Spark is a message that could be sent by the server engine functions, and it is sent.
You should remove from your hidden and confidential code that is not shown, functions which are like:

PHP Code:


message_begin
MSG_BROADCASTSVC_TEMPENTITYOrigin );
write_byteTE_IMPLOSION );
write_coordOrigin] );
write_coordOrigin] );
write_coordOrigin] );
write_byteRadius );
write_byteCount );
write_byteDuration );
message_end( );

/* ** And from a Ham forward which is named TakeDamage you should remove: */

if( g_bInvincibleClient ] )
{
  return 
HAM_SUPERCEDE;


Edited:

By the way, is this a scripting problem, or a modelling one?

Alexander.3 04-20-2012 12:09

Re: Attacked entity spawned spark ( no damage entity )
 
Code:

public test(id)
{
    new NPC_Fast = engfunc(EngFunc_CreateNamedEntity, engfunc(EngFunc_AllocString, "info_target"))
    engfunc(EngFunc_SetModel, NPC_Fast, ZombieFast)
    engfunc(EngFunc_SetSize, NPC_Fast, Float:{ -32.0, -32.0, -35.0}, Float:{  32.0,  32.0,  96.0 })
    engfunc(EngFunc_SetOrigin, NPC_Fast, Float:{899.217041,1425.480468,-443.968750})
    set_pev(NPC_Fast, pev_health, 100.0)
    set_pev(NPC_Fast, pev_solid, SOLID_SLIDEBOX)
    set_pev(NPC_Fast, pev_movetype, MOVETYPE_PUSHSTEP)
    set_pev(NPC_Fast, pev_takedamage, DAMAGE_YES)
    Anim(NPC_Fast, 4)
}

Are you sure? How does it adapt to me?

I think the case in the model

claudiuhks 04-20-2012 12:12

Re: Attacked entity spawned spark ( no damage entity )
 
Do you want to kill an entity and broadcast the death?
Health will be less if you hit an entity with a weapon.

Alexander.3 04-20-2012 12:16

Re: Attacked entity spawned spark ( no damage entity )
 
I just want to. that there was no spark.

.Dare Devil. 04-28-2012 18:44

Re: Attacked entity spawned spark ( no damage entity )
 
your npc is like a gman, he also do spark when you shoot him on hl1.

<VeCo> 04-29-2012 06:24

Re: Attacked entity spawned spark ( no damage entity )
 
There is a sound like shooting metal. Show your damage code.

SGT 04-29-2012 08:01

Re: Attacked entity spawned spark ( no damage entity )
 
Quote:

Originally Posted by <VeCo> (Post 1698573)
There is a sound like shooting metal. Show your damage code.

Yep. Sounds like a shield to me.


All times are GMT -4. The time now is 07:52.

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