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

SentryGun_AI


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Fun Stuff       
jlkj81352
Junior Member
Join Date: Aug 2011
Old 08-05-2011 , 12:56   SentryGun_AI
Reply With Quote #1

Quote:
Sentries in TFC were cool. Sentries in CS are cool.
Sentry guns are stationary engineering wonders that fire bullets at and kill your enemies.
Provides the MonsterAI of a sentrygun.
This is my first post here.
And my english isn't well.

Code:
/*  Cvars	        name			defaultvalue	description
		"sentry_bulletdmg_min"		"10.0"		BulletDamageMin (take effects in mapchange)
		"sentry_bulletdmg_max"		"12.0"		BulletDamageMax (take effects in mapchange)
		"sentry_searchradius"		"1800.0"	Max distance if a sentrygun could find its target	
		"sentry_health_lv1"		"400.0"         DefaultHealth of level one sentrygun
		"sentry_health_lv2"		"400.0"		DefaultHealth of level two sentrygun
		"sentry_health_lv3"		"400.0"		DefaultHealth of level three sentrygun
		"sentry_detonation_dmg"		"200.0"		MaxDamage of detonation
		"sentry_detonation_radius"	"300.0"		Max distance if detonation could affects
		"sentry_dmgtoken_multiplier"	"0.5"		Multiplier of damage dealt to sentrygun
		"sentry_rocketdmg"		"150.0"		MaxDamage of rocket
		"sentry_rocket_lauchdelay"	"5.0"		Delay before rocket lauches and between two launches (take effects in mapchange)
		"sentry_rocket_lauchamount"     "3"		Amount of rockets per launch (take effects in mapchange)
		"sentry_rocket_tracktarget"     "1"		Whether or not the rocket could track a target (take effects in mapchange)
*/
Note: I mis deleted the .inc file, reuploaded.

cstrike:
v1.4a: fix (invalid_entity in player_Killed)
v1.4: added a cvar(sentry_diedet) to set if a player died, his sentry will detonate immediately, and a menu(sentry_menu)

changelog:
v1.5a: fix (invalid_entity in fwd_Touch)
v1.5: added a feature that rocket could auto-track target (controlled by a cvar)
v1.4: fix that sentries fire all rockets when upgrade to lv3 in shooting
v1.3: fix that some natives dont work.
fix the crashes due to monstermod.
v1.2a: fix that rockets' sound loops forever.
v1.2: now it wont get cvar every bullet shot
added features that lv3 sentrygun will launch rockets to its enemy
resources that rockets use, is available in hl
added 3 more cvars to define the rockets (dmg, etc)
added 1 forward for blocking the rocket lauch
v1.1: added 2 more forwards and change the name of the first forward
added 1 more native
change sentry_dmgtoken_multiplier defaultvalue to 0.5
v1.0: first release
Attached Files
File Type: zip SentryGun_Res.zip (145.0 KB, 1338 views)
File Type: inc SentryGun_AI.inc (5.1 KB, 911 views)
File Type: sma Get Plugin or Get Source (SentryGun_AI.sma - 2330 views - 33.9 KB)
File Type: sma Get Plugin or Get Source (SentryGun_cstrike.sma - 2110 views - 9.0 KB)

Last edited by jlkj81352; 08-12-2011 at 00:40. Reason: update
jlkj81352 is offline
padilha007
Senior Member
Join Date: Jul 2008
Old 08-05-2011 , 13:08   Re: SentryGun_AI
Reply With Quote #2

its a nice work, you can share the models to?
__________________

padilha007 is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 08-05-2011 , 13:12   Re: SentryGun_AI
Reply With Quote #3

A plugin example using your API would be welcomed for people who want to test.

Also, have you tried to do such API using func_tank ? It is working and may be worth to try to do something with this entity, it will be more efficient.
__________________
Arkshine is offline
ANTICHRISTUS
kingdom of weird stuff
Join Date: Jun 2010
Location: My kingdom is not in thi
Old 08-05-2011 , 17:28   Re: SentryGun_AI
Reply With Quote #4

Quote:
Originally Posted by padilha007 View Post
its a nice work, you can share the models to?
this is the original thread, there is another one in the approved plugins, also in the zombie sub-forum.

just search
__________________

Last edited by ANTICHRISTUS; 08-07-2011 at 07:58.
ANTICHRISTUS is offline
jlkj81352
Junior Member
Join Date: Aug 2011
Old 08-05-2011 , 21:35   Re: SentryGun_AI
Reply With Quote #5

Quote:
Originally Posted by Arkshine View Post
A plugin example using your API would be welcomed for people who want to test.

Also, have you tried to do such API using func_tank ? It is working and may be worth to try to do something with this entity, it will be more efficient.


example added.
and I just look in the func_tank, I dont know how to setup about it, and I need a completely hook for my entity.

for svencoop support http://forums.alliedmods.net/showthr...45#post1526345
jlkj81352 is offline
hjkwe654
Member
Join Date: Sep 2005
Location: Taiwan
Old 08-06-2011 , 01:58   Re: SentryGun_AI
Reply With Quote #6

You can add rocket fire on level 3 that more like TFC
hjkwe654 is offline
jlkj81352
Junior Member
Join Date: Aug 2011
Old 08-06-2011 , 03:07   Re: SentryGun_AI
Reply With Quote #7

Quote:
Originally Posted by hjkwe654 View Post
You can add rocket fire on level 3 that more like TFC
ya, i did it before release, but its a bit unbalanced(and buggy) in other mods, so i removed it
jlkj81352 is offline
hjkwe654
Member
Join Date: Sep 2005
Location: Taiwan
Old 08-06-2011 , 13:45   Re: SentryGun_AI
Reply With Quote #8

Quote:
Originally Posted by jlkj81352 View Post
ya, i did it before release, but its a bit unbalanced(and buggy) in other mods, so i removed it
can you release that version for me?

EDIT:
Code:
L 08/07/2011 - 02:29:03: Function "on_RoundEnd" was not found
L 08/07/2011 - 02:29:03: [AMXX] Displaying debug trace (plugin "SentryGun_cstrike.amxx")
L 08/07/2011 - 02:29:03: [AMXX] Run time error 19: function not found 
L 08/07/2011 - 02:29:03: [AMXX]    [0] SentryGun_cstrike.sma::plugin_init (line 26)

Last edited by hjkwe654; 08-06-2011 at 14:29.
hjkwe654 is offline
jlkj81352
Junior Member
Join Date: Aug 2011
Old 08-06-2011 , 21:51   Re: SentryGun_AI
Reply With Quote #9

Quote:
Originally Posted by hjkwe654 View Post
can you release that version for me?

EDIT:
Code:
L 08/07/2011 - 02:29:03: Function "on_RoundEnd" was not found
L 08/07/2011 - 02:29:03: [AMXX] Displaying debug trace (plugin "SentryGun_cstrike.amxx")
L 08/07/2011 - 02:29:03: [AMXX] Run time error 19: function not found 
L 08/07/2011 - 02:29:03: [AMXX]    [0] SentryGun_cstrike.sma::plugin_init (line 26)

updated.
please check the first post.
jlkj81352 is offline
romm1e
Member
Join Date: Oct 2010
Old 08-07-2011 , 02:39   Re: SentryGun_AI
Reply With Quote #10

Hi, jlkj81352
Sentries attack lasermines. Can you fix it?

Thx for your work btw =)
What about lvl build system for sentrys? They are build already with lvl 3.

Last edited by romm1e; 08-07-2011 at 02:43.
romm1e 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 13:10.


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