Raised This Month: $32 Target: $400
 8% 

Solved spin my screen ?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
abdobiskra
Veteran Member
Join Date: Jul 2014
Location: Algeria
Old 06-28-2017 , 12:19   spin my screen ?
Reply With Quote #1

Hi
I'm looking for a function I've seen someone use them but I'm not sure if they are "ScreenShake" or no, But it does not work to shake the screen just spin my screen when some one attack me
You get it ? I hope that !
__________________

Last edited by abdobiskra; 10-06-2017 at 12:15.
abdobiskra is offline
Send a message via Skype™ to abdobiskra
Natsheh
Veteran Member
Join Date: Sep 2012
Old 06-28-2017 , 13:23   Re: spin my screen ?
Reply With Quote #2

Yh moving player camera
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
PRoSToTeM@
Veteran Member
Join Date: Jan 2010
Location: Russia, Ivanovo
Old 06-28-2017 , 17:12   Re: spin my screen ?
Reply With Quote #3

punchangle?
__________________
PRoSToTeM@ is offline
Send a message via ICQ to PRoSToTeM@ Send a message via Skype™ to PRoSToTeM@
eyal282
Veteran Member
Join Date: Aug 2011
Old 06-29-2017 , 09:05   Re: spin my screen ?
Reply With Quote #4

PHP Code:

#include <amxmodx>
#include <hamsandwich>
#include <engine>

public plugin_init()
{
RegisterHam(Ham_TakeDamage"HamBurger_TakeDamage");
}

public 
HamBurger_TakeDamage(victim)
{
    new 
Float:ConfusedAngle[3];
    
    for(new 
i;3;i++ )
        
ConfusedAngle[i] = random_float(0.02000.0);
        
    
entity_set_vector(victimEV_VEC_punchangleConfusedAngle );

I suspect 2000 will be so powerful that in a knife fight the first player to stab the other will kill him so change it to be a random number from x.0 to y.0

Take note that Ham_TakeDamage has 5 parameters but I only need 1 at the moment. If you wish to get the attacker and damage, do this:

PHP Code:
public HamBurger_TakeDamage(victiminflictorattackerFloat:damage
eyal282 is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 06-29-2017 , 09:36   Re: spin my screen ?
Reply With Quote #5

random_float(-90.0, 90.0)
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
abdobiskra
Veteran Member
Join Date: Jul 2014
Location: Algeria
Old 06-29-2017 , 15:17   Re: spin my screen ?
Reply With Quote #6

thx guys
__________________
abdobiskra is offline
Send a message via Skype™ to abdobiskra
abdobiskra
Veteran Member
Join Date: Jul 2014
Location: Algeria
Old 06-30-2017 , 05:42   Re: spin my screen ?
Reply With Quote #7

Sorry but why do not you work with the dead player?
this what i try ? is there wrong
PHP Code:
#include <amxmodx>
#include <hamsandwich>
#include <engine>
#include <fakemeta>


public plugin_init(){
    
    
register_plugin("HL Death Style","0.0","abdobiskra")
    
    
RegisterHam(Ham_Killed,"player","fw_PlayerKilled"1)
    
RegisterHam(Ham_Spawn,"player","fw_PlayerSpawn"1)
    
    
register_forward(FM_AddToFullPack"fwFmAddToFullPack"1);
}

public 
fw_PlayerKilled(id)
{
    if(
is_user_alive(id))
        return
    
set_pev(idpev_punchangle, { 0.0,0.0,180.0 })
    
set_view(idCAMERA_3RDPERSON)
    
}

public 
fw_PlayerSpawn(id)
{
    
    if(!
is_user_alive(id))
        return
    
    
set_view(idCAMERA_NONE)
    
set_pev(idpev_punchangle, { 0.0,0.00.0 })
    
//entity_set_vector(id, EV_VEC_punchangle, Float: { 0.0, 0.0, 0.0});
}
public 
fwFmAddToFullPack(es_handleeenthostflagsplayerpSet)
{
    if (!
player || host != ent )
        return;
        
    
set_es(es_handleES_RenderModekRenderNormal


btw my ida to make similar like this :
https://www.youtube.com/watch?v=HIbsYrZvXbg
__________________

Last edited by abdobiskra; 06-30-2017 at 05:44.
abdobiskra is offline
Send a message via Skype™ to abdobiskra
abdobiskra
Veteran Member
Join Date: Jul 2014
Location: Algeria
Old 07-02-2017 , 10:40   Re: spin my screen ?
Reply With Quote #8

bump
__________________
abdobiskra is offline
Send a message via Skype™ to abdobiskra
eyal282
Veteran Member
Join Date: Aug 2011
Old 07-02-2017 , 17:45   Re: spin my screen ?
Reply With Quote #9

When registering Ham_Killed, replace 1 with 0, might work though might fail.
eyal282 is offline
Reply


Thread Tools
Display Modes

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 08:58.


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