item_health_breadandmeat not respawning


(Tardis) #1

Hi I need some help on this one, item_health_breadandmeat - Entities is not respwaning

Flag’s enabbled are spawnflags 9

= RESPAWN + SUSPENDED

But when testing the map with given Entities it does not Respawn and a I know it works on other maps within ET

am I missing somthing ? :confused:

From

http://games.chruker.dk/enemy_territory/entities.php?action=show_entity&entity_name=item_health_breadandmeat

item_health_breadandmeat
Keys
angle
The direction that the item will face
target
(If you see doubled target keys, this was done for future coding reasons)
target
fires target when picked up
targetname
(If you see doubled target keys, this was done for future coding reasons)
targetname
if targeted, will spawn (and respawn) when triggered
Spawnflags
RESPAWN

SPIN

SUSPENDED
Set to keep it from falling to the ground.
Seems to always be +15 HP in ET.
This from RTCW:
multi-stage health item.
amount on first use is based on skill:
then gives 10 on “finishing up”
-------- MODEL FOR RADIANT ONLY - DO NOT SET THIS AS A KEY --------
model path: models/powerups/health/health_b1.md3


(Teuthis) #2

Sorry, Never Used this entity before. You mention a Map Where it Works. What about checking the script and mapfile of this map? Which map do you mean Where it Works?


(Tardis) #3

It is a non scripted Entitie , Its not used in the Source map’s .
It is in most of the RTCW converted maps to ET and a few other maps EG - SecRadar3_final but I think that uses item_health_turkey and have seen them in neuschwaben_final3 and a few other maps but whether they all use item_health_turkey or item_health_breadandmeat im not sure . I do know when you eat them (use) them in game after a wile they respawn just like the normal heath packs on a ammo rack.


(Teuthis) #4

[QUOTE=Tardis;534366]It is a non scripted Entitie , Its not used in the Source map’s .
It is in most of the RTCW converted maps to ET and a few other maps EG - SecRadar3_final but I think that uses item_health_turkey and have seen them in neuschwaben_final3 and a few other maps but whether they all use item_health_turkey or item_health_breadandmeat im not sure . I do know when you eat them (use) them in game after a wile they respawn just like the normal heath packs on a ammo rack.[/QUOTE]

Check the mapfile and Look for the entity entries?


(ailmanki) #5

http://www.level-designer.de/board97-editing/board108-quake-engine/board106-rtcw-et-editing/15923-item-health-respawn/#post201964

So hab nochmal bei beiden Spielen im Sourcecode nachgeschaut:

EnemyTerritory:
Die Funktion Pickup_Health die aufgerufen wird sobald der Spieler das item_health aufhebt liefert generell den Respawn Wert -1 zurück also das es nicht respawnen soll. Man kann es also nicht einstellen außer über eine Mod.

Return to Castle Wolfenstein:
Auch hier wird -1 zurückgeliefert wenn Singleplayer Gametype aktiv. Bei der Pickup_Weapon Funktion wird -1 nur zurückgeliefert wenn der Singleplayer aktiv ist UND das Spawnflag 8 (Respawn) nicht aktiv ist. Darum funktioniert es bei Waffen, dieses hat man wohl bei den Helth Pickups vergessen.

Geht also bei beiden nur mittels Mod.

My translation of it:

So again looked in the source code of both games:

Enemy Territory :
The Pickup_Health function is called when the player picks up the item_health and returns -1 so that it should not respawn . It can not be set, except through a Mod .

Return to Castle Wolfenstein:
Here it also returns -1 if singleplayer gametype is active. Pickup_Weapon function retuns only -1 if the single-player is active and the Spawnflag 8 ( Respawn ) is not active . That’s why it works for weapons, this has probably been forgotten for health pickups.

So for both its only possible with a mod.

So it doesn’t work. But what I did wonder is on chruker’s website it says this:

targetname if targeted, will spawn (and respawn) when triggered

So if that works indeed, you could just have a script which triggers it every 5 mins or so.

edit: apparently you can set ‘count’ to some value, and that will be the health you get. Not sure if that works.


(Tardis) #6

Thanks Ailmanki , It defanly works and you do get +15 HP in ET but it only spawns once, just would be nice as a eye canndy on a map that im working on that can be used over again & again as a extra heath pick up point.

as I under stand chruker’s website this (targetname if targeted, will spawn (and respawn) when triggered ) was going to be a added on to the item_health_breadandmeat and item_health_turkey for both RTCW and ET at a later stage but they never did it .

I will do some testing as a heath point / scripted see what I can turn out .


(KeMoN) #7

Good evening,

sorry if my response is not exactly related, but I more or less just skimmed through the posts.

If the entity doesn’t work, couldn’t you take the model of the entity and place it on the table (or whereever). Put a trigger heal around it and then hide both the trigger_heal and the model for a certain amount of time after the ‘meal has been consumed’. This may not be entirely elegant, but maybe a more convenient solution.

(Just make sure you have enough free entities before you bloat your map with stuff like this. I think it was Ir4t4 who posted this wiki entry, so if you have questions about that limit you could contact him directly).

I’m not entirely sure about the implementation, but the map “caha_tavern” also uses entities like this. Although I’m not sure which exactly and if they infact do respawn.

I hope you find a solution soon and let us know what your search brought up :wink:

Cheers


(Tardis) #8

[QUOTE=KeMoN;534568]
I’m not entirely sure about the implementation, but the map “caha_tavern” also uses entities like this. Although I’m not sure which exactly and if they infact do respawn.

I hope you find a solution soon and let us know what your search brought up :wink:

Cheers[/QUOTE]

Thanks Kemon - On caha_tavern like most of the maps I have seen item_health_breadandmeat & item_health_turkey only spwan Once :frowning:
I have had a go on what Ailmanki said about anding count to the Entitie and also I had ago on what you suggested Kemon but I have had no success with it .

so I have decided to leave as it is in my current project as I have limited time left as I want get a release out soon before I get married on the 8th August - Thanks All :wink: