Raised This Month: $51 Target: $400
 12% 

[Help] why doesnt spawn ?


Post New Thread Reply   
 
Thread Tools Display Modes
Mr.J
Senior Member
Join Date: Sep 2017
Location: cs_assault
Old 01-20-2018 , 11:36   Re: [Help] why doesnt spawn ?
Reply With Quote #11

Quote:
Originally Posted by DeMNiX View Post
did u try this?
Code:
                                flHealth -= damage_to_do; 

                                if( flHealth < 1.0 ) { 
                                        ExecuteHamB( Ham_Killed, index, propaneOwner, 0 ); 
                                } else { 
                                        set_pev( index, pev_health, flHealth ); 
                                        set_pev( index, pev_dmg_take, damage_to_do ); 
                                        set_pdata_int( index, 76, DMG_BLAST ); 
                                        set_pev( index, pev_dmg_inflictor, entity ); 
                                }
=>

Code:
                                static attacker;attacker = pev(entity, pev_dmg_inflictor);
                                if(is_user_alive(attacker))
                                      ExecuteHam(Ham_TakeDamage, index, entity, attacker, damage_to_do, DMG_BLAST); 
                                else ExecuteHam(Ham_TakeDamage, index, entity, index, damage_to_do, DMG_BLAST);
this fixed the problem of respawn , but it doesnt calculated as you killed him can you fix it
Mr.J is offline
DeMNiX
Veteran Member
Join Date: Nov 2011
Location: Russia
Old 01-20-2018 , 12:04   Re: [Help] why doesnt spawn ?
Reply With Quote #12

Code:
                                static attacker;attacker = pev(entity, pev_dmg_inflictor);
                                if(is_user_alive(attacker))
                                      ExecuteHamB(Ham_TakeDamage, index, attacker, attacker, damage_to_do, (DMG_BULLET|DMG_NEVERGIB)); 
                                else ExecuteHam(Ham_TakeDamage, index, entity, index, damage_to_do, DMG_BLAST);
try this, but this will show that u kill player with weapon in your hands
__________________
My channel with test codes
https://www.youtube.com/user/demnix03

Zombie Riot [Scenario & bots-zombie 11.11.2023]
https://youtu.be/8ZZan-aq2sc

Last edited by DeMNiX; 01-20-2018 at 12:07.
DeMNiX is offline
DjSoftero
Veteran Member
Join Date: Nov 2014
Location: Lithuania
Old 01-20-2018 , 12:12   Re: [Help] why doesnt spawn ?
Reply With Quote #13

Quote:
Originally Posted by D3XT3R View Post
teamFor = register_cvar( "pt_team", "2" );
are u retarded
__________________
retired chump
DjSoftero is offline
D3XT3R
AlliedModders Donor
Join Date: Nov 2016
Location: Lithuania, Bomb A (Kauna
Old 01-20-2018 , 12:26   Re: [Help] why doesnt spawn ?
Reply With Quote #14

Quote:
Originally Posted by DjSoftero View Post
are u retarded
ty retard, i didnt even understand the thread
__________________
D3XT3R is offline
Send a message via Skype™ to D3XT3R
DjSoftero
Veteran Member
Join Date: Nov 2014
Location: Lithuania
Old 01-20-2018 , 12:59   Re: [Help] why doesnt spawn ?
Reply With Quote #15

Quote:
Originally Posted by D3XT3R View Post
ty retard, i didnt even understand the thread
then perhaps read before posting crap
__________________
retired chump
DjSoftero is offline
DeMNiX
Veteran Member
Join Date: Nov 2011
Location: Russia
Old 01-20-2018 , 13:01   Re: [Help] why doesnt spawn ?
Reply With Quote #16

Quote:
Originally Posted by DeMNiX View Post
Code:
                                static attacker;attacker = pev(entity, pev_dmg_inflictor); // this needs to set out of the cycle
                                if(is_user_alive(attacker))
                                      ExecuteHamB(Ham_TakeDamage, index, attacker, attacker, damage_to_do, (DMG_BULLET|DMG_NEVERGIB)); 
                                else ExecuteHam(Ham_TakeDamage, index, entity, index, damage_to_do, DMG_BLAST);
try this, but this will show that u kill player with weapon in your hands
PHP Code:

                                
static attacker;attacker pev(entitypev_dmg_inflictor);// this needs to set out of the cycle
                                
if(is_user_alive(attacker))
                                {
                                      
set_pev(entitypev_ownerattacker);
                                      
ExecuteHamB(Ham_TakeDamageindexentityattackerdamage_to_do, (DMG_BULLET|DMG_NEVERGIB)); 
                                }
                                else 
ExecuteHam(Ham_TakeDamageindexentityindexdamage_to_doDMG_BLAST); 
i'm not sure about this, but just try
__________________
My channel with test codes
https://www.youtube.com/user/demnix03

Zombie Riot [Scenario & bots-zombie 11.11.2023]
https://youtu.be/8ZZan-aq2sc

Last edited by DeMNiX; 01-20-2018 at 13:05.
DeMNiX is offline
Mr.J
Senior Member
Join Date: Sep 2017
Location: cs_assault
Old 01-20-2018 , 13:36   Re: [Help] why doesnt spawn ?
Reply With Quote #17

Quote:
Originally Posted by DeMNiX View Post
Code:
                                static attacker;attacker = pev(entity, pev_dmg_inflictor);
                                if(is_user_alive(attacker))
                                      ExecuteHamB(Ham_TakeDamage, index, attacker, attacker, damage_to_do, (DMG_BULLET|DMG_NEVERGIB)); 
                                else ExecuteHam(Ham_TakeDamage, index, entity, index, damage_to_do, DMG_BLAST);
try this, but this will show that u kill player with weapon in your hands
this didnt work

Quote:
Originally Posted by DeMNiX View Post
PHP Code:

                                
static attacker;attacker pev(entitypev_dmg_inflictor);// this needs to set out of the cycle
                                
if(is_user_alive(attacker))
                                {
                                      
set_pev(entitypev_ownerattacker);
                                      
ExecuteHamB(Ham_TakeDamageindexentityattackerdamage_to_do, (DMG_BULLET|DMG_NEVERGIB)); 
                                }
                                else 
ExecuteHam(Ham_TakeDamageindexentityindexdamage_to_doDMG_BLAST); 
i'm not sure about this, but just try
also this , still not calculting that you killed him
Mr.J is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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