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

[RESOLVED] Getting rid of glow function for spawn protection


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
BioI-Iazard
Senior Member
Join Date: Sep 2005
Location: Calgary, Alberta
Old 03-30-2007 , 01:40   [RESOLVED] Getting rid of glow function for spawn protection
Reply With Quote #1

How do i get rid of the glow function in the gungame plugin?
i still want the spawn protection just no glow cause its interfering with my other glow plugin...
help greatly appreciated
iv read that this plugin cant be compiled with the web complier wat do i use?
the fake meta stuff i dont get it :s

thnx in advance
__________________
Loved by Many ....
Hated by Some ....
Respected by All !!!!

Last edited by XxAvalanchexX; 04-03-2007 at 16:18. Reason: marked resolved
BioI-Iazard is offline
Mordekay
Squirrel of Fortune
Join Date: Apr 2006
Location: Germany
Old 03-30-2007 , 06:03   Re: Getting rid of glow function for spawn protection
Reply With Quote #2

As far as i know coding (wich isn't really much ) you have to edit the sourcecode
Search for this in the sma:
Code:
// spawn protection
	if(time > 0.0 && mode)
	{
		spawnProtected[id] = 1;
		if(mode == 2)
		{
			fm_set_user_godmode(id,1);
			fm_set_rendering(id,kRenderFxGlowShell,200,200,100,kRenderNormal,1); // goldenish
		}
		else fm_set_rendering(id,kRenderFxGlowShell,100,100,100,kRenderNormal,1); // gray/white

		set_task(time,"remove_spawn_protection",TASK_REMOVE_PROTECTION+id);
	}
and change it to
Code:
// spawn protection
	if(time > 0.0 && mode)
	{
		spawnProtected[id] = 1;
		if(mode == 2)
		{
			fm_set_user_godmode(id,1);
			
		}
		set_task(time,"remove_spawn_protection",TASK_REMOVE_PROTECTION+id);
	}
Then you have to recompile the plugin localy using the fakemeta utilities from VEN, goto THIS thread to download them.
I hope my edit of the code is correct
__________________

Mordekay is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 03-30-2007 , 17:20   Re: Getting rid of glow function for spawn protection
Reply With Quote #3

Mordekay, your code looks correct. But the remove_spawn_protection function also has some rendering in there, which turns off the glowshell. So he would have to remove it from there as well.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
BioI-Iazard
Senior Member
Join Date: Sep 2005
Location: Calgary, Alberta
Old 04-05-2007 , 17:01   Re: Getting rid of glow function for spawn protection
Reply With Quote #4

Quote:
Originally Posted by XxAvalanchexX View Post
Mordekay, your code looks correct. But the remove_spawn_protection function also has some rendering in there, which turns off the glowshell. So he would have to remove it from there as well.
So what should it look like with it removed?
sorry im a noob at this
__________________
Loved by Many ....
Hated by Some ....
Respected by All !!!!
BioI-Iazard is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 04-05-2007 , 17:39   Re: [RESOLVED] Getting rid of glow function for spawn protection
Reply With Quote #5

Code:
// get rid of the spawn protection effects  public remove_spawn_protection(taskid)  {     new id = taskid-TASK_REMOVE_PROTECTION;     if(!is_user_connected(id)) return;     spawnProtected[id] = 0;     if(get_pcvar_num(gg_dm_sp_mode) == 2) fm_set_user_godmode(id,0);         fm_set_rendering(id); // reset back to normal  }

becomes

Code:
// get rid of the spawn protection effects  public remove_spawn_protection(taskid)  {     new id = taskid-TASK_REMOVE_PROTECTION;     if(!is_user_connected(id)) return;     spawnProtected[id] = 0;     if(get_pcvar_num(gg_dm_sp_mode) == 2) fm_set_user_godmode(id,0);  }
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
BioI-Iazard
Senior Member
Join Date: Sep 2005
Location: Calgary, Alberta
Old 04-06-2007 , 14:30   Re: [RESOLVED] Getting rid of glow function for spawn protection
Reply With Quote #6

so do i get rid of the whole spawn protection section that mordekay has and replace it with what avalanche has posted?


Quote:
Originally Posted by XxAvalanchexX View Post
Code:
// get rid of the spawn protection effects  public remove_spawn_protection(taskid)  {     new id = taskid-TASK_REMOVE_PROTECTION;     if(!is_user_connected(id)) return;     spawnProtected[id] = 0;     if(get_pcvar_num(gg_dm_sp_mode) == 2) fm_set_user_godmode(id,0);         fm_set_rendering(id); // reset back to normal  }

becomes

Code:
// get rid of the spawn protection effects  public remove_spawn_protection(taskid)  {     new id = taskid-TASK_REMOVE_PROTECTION;     if(!is_user_connected(id)) return;     spawnProtected[id] = 0;     if(get_pcvar_num(gg_dm_sp_mode) == 2) fm_set_user_godmode(id,0);  }
Quote:
Originally Posted by Mordekay View Post
As far as i know coding (wich isn't really much ) you have to edit the sourcecode
Search for this in the sma:
Code:
// spawn protection
	if(time > 0.0 && mode)
	{
		spawnProtected[id] = 1;
		if(mode == 2)
		{
			fm_set_user_godmode(id,1);
			fm_set_rendering(id,kRenderFxGlowShell,200,200,100,kRenderNormal,1); // goldenish
		}
		else fm_set_rendering(id,kRenderFxGlowShell,100,100,100,kRenderNormal,1); // gray/white

		set_task(time,"remove_spawn_protection",TASK_REMOVE_PROTECTION+id);
	}
and change it to
Code:
// spawn protection
	if(time > 0.0 && mode)
	{
		spawnProtected[id] = 1;
		if(mode == 2)
		{
			fm_set_user_godmode(id,1);
			
		}
		set_task(time,"remove_spawn_protection",TASK_REMOVE_PROTECTION+id);
	}
Then you have to recompile the plugin localy using the fakemeta utilities from VEN, goto THIS thread to download them.
I hope my edit of the code is correct
__________________
Loved by Many ....
Hated by Some ....
Respected by All !!!!
BioI-Iazard is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 04-06-2007 , 16:33   Re: [RESOLVED] Getting rid of glow function for spawn protection
Reply With Quote #7

There are two different functions that you need to change to remove the glow. Mordekay posted how to change the first one, and I posted how to change the second one.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
BioI-Iazard
Senior Member
Join Date: Sep 2005
Location: Calgary, Alberta
Old 04-06-2007 , 18:29   Re: [RESOLVED] Getting rid of glow function for spawn protection
Reply With Quote #8

i figured it out! haha i thought avalanche that ur post i would have to add it to the plugin right after what the other guy had posted thas when i got confused...
i figured it out though.
one more question though...
this only gets rid of the effect right.
because i still want/need the spawn protection feature
__________________
Loved by Many ....
Hated by Some ....
Respected by All !!!!
BioI-Iazard is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 04-07-2007 , 00:31   Re: [RESOLVED] Getting rid of glow function for spawn protection
Reply With Quote #9

Correct, it only gets rid of the glow.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX 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 11:11.


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