Raised This Month: $18 Target: $400
 4% 

Sentry guns


Post New Thread Reply   
 
Thread Tools Display Modes
XCoder
Member
Join Date: Mar 2006
Location: Worldwide
Old 03-25-2006 , 23:06   changed this on Version: 0.5.3
Reply With Quote #261

Hello Guys

Yes verry nice Plugin.
But verry much Players on our Server gives bad suggestions.

So i do following changes:

A) minnimum player check
B) Sentry Block on specified Maps
C) Sentry Block on own Buyzone

My knowledge with AMXX on this Area is verry bad, but i tryd my best.
If someone have better ideas / codes then please post it.

-------- do this ----------

Put following Code directly unter the Public definitions, of course its everytime the same code.
But i dont know how to make it global for all these pubs...

PUB 1: public createsentryhere(id)
PUB 2: public sentry_build(id)
PUB 3: public menumain(id)

Code:
        // Number 6 defines min. 6 players before Sentry can be build
	if(get_playersnum()<6)
	{
	set_hudmessage(255, 0, 0, -1.0, -1.0, 0, 6.0, 5.0)
	show_hudmessage(id, "6 Players needed for Sentry, current: %s", get_playersnum())
	return PLUGIN_HANDLED
	}
	
	new mapname[32]
	get_mapname(mapname, 31)
	if (equal(mapname, "cs_deagle5") || equal(mapname, "fy_pool_day") || equal(mapname, "cs_747") || equal(mapname, "cs_estate") || equal(mapname, "cs_neighborhood") || equal(mapname, "aim_sbscoutz") || equal(mapname, "cs_city_assault") || equal(mapname, "cs_assault_ahoy"))
	{
	set_hudmessage(255, 0, 0, -1.0, -1.0, 0, 6.0, 5.0)
	show_hudmessage(id, "Sentrys are forbidden on Map %s", mapname)
	return PLUGIN_HANDLED
	}
	
	if(cs_get_user_buyzone(id)>0)
	{
	set_hudmessage(255, 0, 0, -1.0, -1.0, 0, 6.0, 5.0)
	show_hudmessage(id, "cannot BUILD Sentry on Buyzone!")
	return PLUGIN_HANDLED
	}
With this Codes its better for Teamplay and Public Server with WC3 Mod, because otherwise its to much ...

I also changed the Config for an Sentry to this:

new const g_SENTRYFRAGREWARDS[3] = {300, 150, 150} // how many $ you get if your sentry frags someone. If you built and upgraded to level 3 you would get $300 + $150 = $450. If built and upgraded all you would get $600.
new const g_DMG[3] = {6, 9, 11} // how much damage a bullet from a sentry does per hit
new const Float:g_THINKFREQUENCIES[3] = {1.1, 0.8, 0.5} // how often, in seconds, a sentry searches for targets when not locked at a target, a lower value means a sentry will lock on targets faster
new const Float:g_HITRATIOS[3] = {0.18, 0.70, 0.75} // how good a sentry is at hitting its target. 1.0 = always hit, 0.0 = never hit
new const Float:g_HEALTHS[3] = {650.0, 710.0, 730.0} // how many HP a sentry has. Increase to make sentry sturdier
new const g_COST[3] = {4000, 1000, 2000} // fun has a price, first is build cost, the next two upgrade costs


So its verry fair..
Also changed 2 Sentrys per player to one!

Thats the best use without loosing the gaming fun.

best greets

XCoder
XCoder is offline
XCoder
Member
Join Date: Mar 2006
Location: Worldwide
Old 03-27-2006 , 07:29  
Reply With Quote #262

I found an new Bug...

When a Player joins an team and place an Sentry somewhere and then he goes to Spectator Mode, the Sentry still alive.
And the Sentry stay alive ... also in next rounds!!!

Thats an verry bad and fast known Bug.
So many Players put Sentrys on Enemys Base and then they go to Spectator.
XCoder is offline
s0uLjA
Junior Member
Join Date: Jul 2005
Old 04-17-2006 , 17:29  
Reply With Quote #263

lol im jus wondering, whats the name of that map? the screen shot on the very first post.
__________________
s0uLjA is offline
Johnny got his gun
Veteran Member
Join Date: Jan 2004
Location: Tokyo
Old 04-17-2006 , 18:23  
Reply With Quote #264

It's cs_crackhouse...

Sorry for not being around, I don't have the time to support this or any other plugins... let alone play anymore :-P
and no this plugin isn't 100% stable
Johnny got his gun is offline
Cloud_909
Member
Join Date: Jun 2005
Location: Washington
Old 04-23-2006 , 14:23  
Reply With Quote #265

This is a fun plugin
Cloud_909 is offline
Send a message via AIM to Cloud_909
n0oo7
Junior Member
Join Date: Apr 2006
Old 04-23-2006 , 18:30  
Reply With Quote #266

Quote:
Originally Posted by Damaged Soul
Quote:
Originally Posted by MC-Olivenoel
ok the senty shots at bot

shot the bots the senty
If I'm understanding you correctly, you want to know if the sentry guns can shoot at bots and if the bots can shoot at the sentry gun.

Yes, the sentry guns can shoot and kill bots.

As far as bots shooting the sentry guns, I would think the bots would need to be programmed to recognize sentry guns as an enemy and I'm pretty sure there aren't any CS/CZ bots like that. If a sentry gun happens to be in the line of fire of a bot when the bot is trying to fire at an enemy, then the sentry will get damaged. I have seen that happen. However bots wouldn't be able to target sentries directly without being programmed to do so, I believe. So, the answer to that question would be no.


I HAVE SEEN BOTS PLACE DOWN sentry guns
so they wil shoot at them
__________________
n0oo7 is offline
Send a message via Yahoo to n0oo7
n0oo7
Junior Member
Join Date: Apr 2006
Old 04-23-2006 , 18:33  
Reply With Quote #267

Quote:
Originally Posted by Johnny got his gun
Most settings like that can be changed by opening up the sma, finding the setting, changing it, saving, robbing, compiling.
not everybody is a mastar in scripting (so help us u noob)




PLEASE
__________________
n0oo7 is offline
Send a message via Yahoo to n0oo7
Johnny got his gun
Veteran Member
Join Date: Jan 2004
Location: Tokyo
Old 04-23-2006 , 18:54  
Reply With Quote #268

Yes bots can place sentries, that's very easy to make, as it's not really the bots themselves that place the sentries. It's faked of course, but do you notice? To make them shoot at them is something else. Maybe if you can successfully get one bot type to shoot at them, there is likely nothing saying another bot type will.
Johnny got his gun is offline
Cloud_909
Member
Join Date: Jun 2005
Location: Washington
Old 04-23-2006 , 21:41   BUG FOUND
Reply With Quote #269

there is a bug (or something you might want to fix)

When you build a sentry (while you stand still and actually building it) destory the base of the sentry gun (while building it) then the top of the sentry will drop on the ground and spin round and round faster and faster and starts shooting, after bout 8 seconds it spins very fast and shoots very quickly then blows up. (you might want to fix this by not letting the client shoot until the building process is complete)
Cloud_909 is offline
Send a message via AIM to Cloud_909
z0nax
Member
Join Date: Mar 2006
Location: Denmark | In my dark roo
Old 04-26-2006 , 08:31  
Reply With Quote #270

NICE plugin!

it will be collest if it only was the Admins will make em!

but nice! i will try it soon
__________________
- ZoNaX^
http://forums.alliedmods.net/faq.php...b_board_search
Offering free help to install:
AMXx, Plugins, Adding Admins.
The most general things to know.
PM me.
z0nax is offline
Send a message via MSN to z0nax
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 15:54.


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