Raised This Month: $7 Target: $400
 1% 

Stripper source TANKS custom


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
JLmelenchon
Senior Member
Join Date: Mar 2019
Old 04-20-2022 , 18:15   Stripper source TANKS custom
Reply With Quote #1

So you probably know that it is possible to spawn a tank with stripper source extension, but i was wondering if it is possible to reduce the total health of this particular tank with by adding a value in the cfg of the map?

add:
{
"targetname" "custom_tank"
"origin" "2122 5832 2522"
"angles" "0 -85 0"
"population" "tank"
"offer_tank" "1"
"classname" "info_zombie_spawn"
}
JLmelenchon is offline
Psyk0tik
Veteran Member
Join Date: May 2012
Location: Homeless
Old 04-20-2022 , 19:04   Re: Stripper source TANKS custom
Reply With Quote #2

According to this page, there are no keyvalues available to determine the health of the spawned zombie. The "info_zombie_spawn" is just a spawner entity, so it makes sense that it wouldn't have any control over the zombie's base health.
__________________
Psyk0tik is offline
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 04-21-2022 , 08:34   Re: Stripper source TANKS custom
Reply With Quote #3

Probably you could achieve that using "RunScriptCode" input to set the tank health.
Maybe would need a trigger_once entity as well to set it.

This is how is done in back4glub map just to give you some hint:

PHP Code:
{
"targetname" "trigger_tank"
"StartDisabled" "0"
"spawnflags" "3"
"origin" "999 999 999"
"filtername" "filter_tank"
"classname" "trigger_once"
"OnStartTouch" "!activator,RunScriptCode,self.SetHealth(self.GetHealth() *1.5),0,-1"
"OnStartTouch" "!activator,SetColor,255 0 0,0,-1"
"OnStartTouch" "!self,Kill,,0,-1"
}
{
"origin" "999 999 999"
"targetname" "filter_tank"
"Negated" "Allow entities that match criteria"
"filterinfectedclass" "8"
"classname" "filter_activator_infected_class"

__________________

Last edited by Marttt; 04-21-2022 at 08:34.
Marttt 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 04:31.


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