Raised This Month: $ Target: $400
 0% 

SentryGun_AI


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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, 1340 views)
File Type: inc SentryGun_AI.inc (5.1 KB, 919 views)
File Type: sma Get Plugin or Get Source (SentryGun_AI.sma - 2337 views - 33.9 KB)
File Type: sma Get Plugin or Get Source (SentryGun_cstrike.sma - 2121 views - 9.0 KB)

Last edited by jlkj81352; 08-12-2011 at 00:40. Reason: update
jlkj81352 is offline
 



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 17:24.


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