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

[CS:GO] Chicken C4


Post New Thread Reply   
 
Thread Tools Display Modes
MiserAbleMan
SourceMod Donor
Join Date: Aug 2014
Old 03-13-2015 , 04:34   Re: [CS:GO] Chicken C4
Reply With Quote #11

Quote:
Originally Posted by nguyenbaodanh View Post
it always active or we admin can active it on purpose ?
it would be awesome if the admin can active it
MiserAbleMan is offline
RedSword
SourceMod Plugin Approver
Join Date: Mar 2006
Location: Quebec, Canada
Old 03-13-2015 , 14:36   Re: [CS:GO] Chicken C4
Reply With Quote #12

Hey,

I'd check if the entity can be DispatchSpawned if I were you, just to be cautious (though I haven't heard of a case where an entity could be created and not spawned).

However, IIRC I've seen plugins with DispatchSpawn return not checked so I'll approve.

Red
__________________
My plugins :
Red Maze
Afk Bomb
RAWR (per player/rounds Awp Restrict.)
Kill Assist
Be Medic

You can also Donate if you appreciate my work
RedSword is offline
shanapu
Veteran Member
Join Date: Apr 2015
Location: .de
Old 05-03-2015 , 14:18   Re: [CS:GO] Chicken C4
Reply With Quote #13

i love this work! still tears of laughter in my eyes...
...but is there a way to defuse this chicken?

edit: ok, defusing with 3 shooting jackass around is immposible... with empathy tho the chicken it works... ;)

Thanks for this piece of gold!

Last edited by shanapu; 05-03-2015 at 14:25.
shanapu is offline
m_bNightstalker
Senior Member
Join Date: Jan 2015
Location: JWD
Old 08-22-2015 , 06:12   Re: [CS:GO] Chicken C4
Reply With Quote #14

Oh Mitch

TeleportEntity(chicken, NULL_VECTOR, NULL_VECTOR, NULL_VECTOR);

Last edited by m_bNightstalker; 08-22-2015 at 06:12.
m_bNightstalker is offline
RaZ_HU
Senior Member
Join Date: May 2015
Location: Hungary
Old 11-07-2015 , 03:57   Re: [CS:GO] Chicken C4
Reply With Quote #15

Very nice plugin, I just lol'd hard


May I request a function that the chicken slows down/stops if a CT starts to defuse?
RaZ_HU is offline
alekxsey
Junior Member
Join Date: Jan 2015
Old 11-14-2015 , 21:07   Re: [CS:GO] Chicken C4
Reply With Quote #16

Do you have someone to the first version of the plugin?
The next value sm_chickc4_visible "0" bomb levitates
In the first version of it was good.
alekxsey is offline
RaZ_HU
Senior Member
Join Date: May 2015
Location: Hungary
Old 11-16-2015 , 15:16   Re: [CS:GO] Chicken C4
Reply With Quote #17

Quote:
Originally Posted by alekxsey View Post
Do you have someone to the first version of the plugin?
The next value sm_chickc4_visible "0" bomb levitates
In the first version of it was good.
If I am right you need to move line 43 to line 52, that makes it to lift the C4 or not.
So it will look like this:

PHP Code:
#pragma semicolon 1

#include <sourcemod>
#include <sdktools>

#define PLUGIN_VERSION "1.1.0"

new Handle:hVisibleChick INVALID_HANDLE;
new 
bool:visibleChicken false;

public 
Plugin:myinfo =
{
    
name "Chicken C4",
    
author "Mitch.",
    
description "CHICKEN C4 WAT.",
    
version PLUGIN_VERSION,
    
url "http://snbx.info/"
};

public 
OnPluginStart()
{
    
hVisibleChick CreateConVar("sm_chickc4_visible""0""Set to 1 for the chicken to be visible.");
    
HookConVarChange(hVisibleChickOnCvarChanged);
    
AutoExecConfig();
    
    
CreateConVar("sm_chickenc4_version"PLUGIN_VERSION"Chicken C4 Version"FCVAR_DONTRECORD|FCVAR_NOTIFY);    
    
HookEvent("bomb_planted"BomPlanted_Event);
}
public 
Action:BomPlanted_Event(Handle:event, const String:name[], bool:dontBroadcast)
{
    new 
c4 = -1;
    
c4 FindEntityByClassname(c4"planted_c4");
    if(
c4 != -1) {
        new 
chicken CreateEntityByName("chicken");
        if(
chicken != -1) {
            new 
player GetClientOfUserId(GetEventInt(event"userid"));
            
decl Float:pos[3];
            
GetEntPropVector(playerProp_Data"m_vecOrigin"pos);
            
            
DispatchSpawn(chicken);
            
SetEntProp(chickenProp_Data"m_takedamage"0);
            
SetEntProp(chickenProp_Send"m_fEffects"0);
            
TeleportEntity(chickenposNULL_VECTORNULL_VECTOR);
            
TeleportEntity(c4NULL_VECTORFloat:{0.00.00.0}, NULL_VECTOR);
            
SetVariantString("!activator");
            
AcceptEntityInput(c4"SetParent"chickenc40);
            if(
visibleChicken) {
                
pos[2] += 15.0;
                
TeleportEntity(chickenNULL_VECTORNULL_VECTORNULL_VECTOR);
            } else {
                
pos[2] -= 15.0;
                
SetEntityRenderMode(chickenRENDER_NONE);
            }
        }
    }
    return 
Plugin_Continue;
}

public 
OnCvarChanged(Handle:cvar, const String:oldVal[], const String:newVal[]) {
    
visibleChicken = !StrEqual(newVal"0"false);

RaZ_HU is offline
Zeddy_god
Senior Member
Join Date: May 2015
Location: Mumbai, India
Old 01-02-2016 , 17:17   Re: [CS:GO] Chicken C4
Reply With Quote #18

This plugin randomly crashes my server on round ends. Seems like round start crashes the server sometimes, I tried testing all type of rounds and they work, but i think once in a while no round gets chosen. I think it shows nothing in the green text chat and crashes [saw this once].
__________________
Zeddy_god is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 01-02-2016 , 17:21   Re: [CS:GO] Chicken C4
Reply With Quote #19

Quote:
Originally Posted by Zeddy_god View Post
This plugin randomly crashes my server on round ends. Seems like round start crashes the server sometimes, I tried testing all type of rounds and they work, but i think once in a while no round gets chosen. I think it shows nothing in the green text chat and crashes [saw this once].
I think you're in the wrong plugin thread, I think you are looking for Fun Rounds.
This plugin has nothing do with rounds starting or ending.
Mitchell is offline
chouchouille28
Junior Member
Join Date: Dec 2012
Old 01-14-2017 , 21:56   Re: [CS:GO] Chicken C4
Reply With Quote #20

where is the chicken, i don't see it to the vidéo
you don't can make a chicken whith the bomb ?
chouchouille28 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 22:26.


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