AFC~Gagi2~

still no godmode with ryanzombies yet

19 posts in this topic

34 minutes ago, infiSTAR said:

Somebody that has zombies on his server could try if this works as "zombieshield" not sure if it is all classes and if the zombies are not local to your client it will force kick you for deleteVehicle, unless the server admin has changed the deleteVehicle filter :P

  Hide contents

 

 

I can test it. Where does the code go?

Share this post


Link to post
Share on other sites

If you are on your live server with zombies and have admin you simply open the adminconsole, copy paste the code in and press "run local"

Share this post


Link to post
Share on other sites
Advertisement
33 minutes ago, infiSTAR said:

If you are on your live server with zombies and have admin you simply open the adminconsole, copy paste the code in and press "run local"

It kinda works? A few zeds were bashing on me until I hit 0% HP, then stopped, ignored me and stood there until they fell over dead. Healed myself back up to full, and walked up to another group - as I was taking damage, my HP was getting bumped back up to 100. Managed to survive like that for a little while, until I started taking too many hits and got killed.

edit: no BE kicks either, using your filters

Edited by fr1nk

Share this post


Link to post
Share on other sites

Oh, forgot to mention that they were getting deleted. What happened was: they kill me, then stand there for a few seconds not moving...fall over dead, then the corpses get cleared a couple of seconds later.

Share this post


Link to post
Share on other sites

lol :-) Maybe just running to slow as it checks for all classes of zeds I could find within 12m every 1 seconds. Maybe it simply needs to do that faster or within a bigger range :)

 

ZED_SHIELD_LOOP_TIME = 0.5;
ZED_SHIELD_RANGE = 15;


ZED_CLASSES = [];
if(!isNil'slowCivilians')then{ZED_CLASSES append slowCivilians;};
if(!isNil'slowSoldiers')then{ZED_CLASSES append slowSoldiers;};
if(!isNil'mediumCivilians')then{ZED_CLASSES append mediumCivilians;};
if(!isNil'mediumSoldiers')then{ZED_CLASSES append mediumSoldiers;};
if(!isNil'fastCivilians')then{ZED_CLASSES append fastCivilians;};
if(!isNil'fastSoldiers')then{ZED_CLASSES append fastSoldiers;};
if(!isNil'boss')then{ZED_CLASSES append boss;};
if(!isNil'spiders')then{ZED_CLASSES append spiders;};
if(!isNil'crawlers')then{ZED_CLASSES append crawlers;};
KILL_ZED_CODE = {
	if(player isEqualTo vehicle player)then
	{
		if(alive player)then
		{
			_position = getPos player;
			{deleteVehicle _x;} forEach (_position nearEntities[ZED_CLASSES,ZED_SHIELD_RANGE]);
		};
	};
};
if(!isNil'kill_zed_thread')then{[kill_zed_thread] call ExileClient_system_thread_removeTask;};
kill_zed_thread = [ZED_SHIELD_LOOP_TIME, {[] call KILL_ZED_CODE}, [], true] call ExileClient_system_thread_addtask;

 

Share this post


Link to post
Share on other sites

oh my god it hurts my head to see the code of that exileZ well at least the small portion I've just seen

	_zClass createUnit 
	[
		_position,
		_group,
		"
		if !(call _vestGroup=='') then {this addVest call _vestGroup};
		if !(call _lootGroup=='' && call _vestGroup=='') then {this addItemToVest call _lootGroup};
		doStop this;
		this disableAI 'FSM';
		this enableAI 'ANIM';
		this disableConversation true;
		this addMPEventHandler ['MPKilled', {_this spawn ZMPKilled;}];
		nul = [this,_avoidTerritory] spawn ZombieDeleter;
		"
		
	];

those who know will just cry :P

it should really use the exile mainloop and not a spawn for each thread but whatever I mean that's not the problem :P

I've tested this on a server running "zombies and demons"
 

Spoiler

ZED_SHIELD_LOOP_TIME = 0.1;
ZED_SHIELD_RANGE = 12;


KILL_ZED_CODE = {
	if(alive player)then
	{
		player setDamage 0;
	};
	
	_position = getPos player;
	{
		_ryan = getText(configFile >> 'CfgVehicles' >> typeOf _x >> 'author') isEqualTo 'Ryan';
		if(_ryan)then
		{
			deleteVehicle _x;
		};
	} forEach (_position nearEntities['Man',ZED_SHIELD_RANGE]);
};
if(!isNil'kill_zed_thread')then{[kill_zed_thread] call ExileClient_system_thread_removeTask;};
kill_zed_thread = [ZED_SHIELD_LOOP_TIME, {[] call KILL_ZED_CODE}, [], true] call ExileClient_system_thread_addtask;

 

working fine

  • Like 1

Share this post


Link to post
Share on other sites

Works as it should without be kicks in admin console.

When i want this code in the CUSTOM_FUNKTIONS.hpp what must it look like? 

Spoiler

class custom1 {
        type = 1;    // toggle on/off
        name = "Zombie Shield";
        code = "ZED_SHIELD_LOOP_TIME = 0.1;
				ZED_SHIELD_RANGE = 12;


KILL_ZED_CODE = {
	if(alive player)then
	{
		player setDamage 0;
	};
	
	_position = getPos player;
	{
		_ryan = getText(configFile >> 'CfgVehicles' >> typeOf _x >> 'author') isEqualTo 'Ryan';
		if(_ryan)then
		{
			deleteVehicle _x;
		};
	} forEach (_position nearEntities['Man',ZED_SHIELD_RANGE]);
};
if(!isNil'kill_zed_thread')then{[kill_zed_thread] call ExileClient_system_thread_removeTask;};
kill_zed_thread = [ZED_SHIELD_LOOP_TIME, {[] call KILL_ZED_CODE}, [], true] call ExileClient_system_thread_addtask;"

 

That doesn't work.

Thank you.

Share this post


Link to post
Share on other sites
Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.