Raised This Month: $ Target: $400
 0% 

SentryGun_AI


Post New Thread Reply   
 
Thread Tools Display Modes
jlkj81352
Junior Member
Join Date: Aug 2011
Old 08-07-2011 , 04:21   Re: SentryGun_AI
Reply With Quote #11

Quote:
Sentries attack lasermines. Can you fix it?
in cstrike?
Code:
public sentry_couldBeTarget(ent, sentry)
{
	new class[32]
	pev(ent, pev_classname, class, 31)
	if(equal(class, "hostage_entity") || equal(class, "func_breakable"))
		return 0
	if(equal(class, "CLASSNAME_LASERMINE"))
		return 0
	return -1
}
replace the CLASSNAME_LASERMINE with the classname of lasermine to prevent attacking a lasermine
Quote:
Thx for your work btw =)
What about lvl build system for sentrys? They are build already with lvl 3.
its just a example for using my API.
maybe i will post a plugin (with complete system) for cstrike later.

Last edited by jlkj81352; 08-07-2011 at 04:24. Reason: ok, thats laermine not tripmine
jlkj81352 is offline
hjkwe654
Senior Member
Join Date: Sep 2005
Location: Taiwan
Old 08-07-2011 , 04:28   Re: SentryGun_AI
Reply With Quote #12

Sentries easy to crash server with MonsterMod
hjkwe654 is offline
jlkj81352
Junior Member
Join Date: Aug 2011
Old 08-07-2011 , 04:35   Re: SentryGun_AI
Reply With Quote #13

huh? i havent test it in monstermod, i will go to test it
jlkj81352 is offline
hjkwe654
Senior Member
Join Date: Sep 2005
Location: Taiwan
Old 08-07-2011 , 04:48   Re: SentryGun_AI
Reply With Quote #14

more easy crash was
apache
bigmomma
hgrunt

I think they throw somethings (like grenade, missile, spits) crash sentries
hjkwe654 is offline
zetamen
Junior Member
Join Date: Mar 2010
Location: Russia
Old 08-07-2011 , 06:39   Re: SentryGun_AI
Reply With Quote #15

sentry_detonate and sentry_remove don't work only me?
zetamen is offline
romm1e
Member
Join Date: Oct 2010
Old 08-07-2011 , 07:09   Re: SentryGun_AI
Reply With Quote #16

Quote:
Originally Posted by jlkj81352 View Post
in cstrike?
Code:
public sentry_couldBeTarget(ent, sentry)
{
    new class[32]
    pev(ent, pev_classname, class, 31)
    if(equal(class, "hostage_entity") || equal(class, "func_breakable"))
        return 0
    if(equal(class, "CLASSNAME_LASERMINE"))
        return 0
    return -1
}
replace the CLASSNAME_LASERMINE with the classname of lasermine to prevent attacking a lasermine
Yeh, works fine

Quote:
Originally Posted by zetamen View Post
sentry_detonate and sentry_remove don't work only me?
Same) And sentry_build works once in round.
romm1e is offline
jlkj81352
Junior Member
Join Date: Aug 2011
Old 08-07-2011 , 07:49   Re: SentryGun_AI
Reply With Quote #17

Quote:
Originally Posted by zetamen View Post
sentry_detonate and sentry_remove don't work only me?
its a mistake i made in source code. fixed.


im working on the crash
thx
jlkj81352 is offline
zetamen
Junior Member
Join Date: Mar 2010
Location: Russia
Old 08-07-2011 , 09:38   Re: SentryGun_AI
Reply With Quote #18

Quote:
Originally Posted by jlkj81352 View Post
its a mistake i made in source code. fixed.
don't work(
zetamen is offline
jlkj81352
Junior Member
Join Date: Aug 2011
Old 08-07-2011 , 09:40   Re: SentryGun_AI
Reply With Quote #19

Now i found out the problem.
i looked the source code of monstermod
it check euser4 of the entity it shot at
if euser isnt null
monstermod recognize the entity as a monster made by monstermod, and then try to get the monster pointer -> crash

recheck the first post plz

Last edited by jlkj81352; 08-07-2011 at 09:45.
jlkj81352 is offline
zetamen
Junior Member
Join Date: Mar 2010
Location: Russia
Old 08-07-2011 , 10:18   Re: SentryGun_AI
Reply With Quote #20

Quote:
Originally Posted by jlkj81352 View Post
recheck the first post plz
excellent, it work, good job)
zetamen is offline
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 06:00.


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