DeT
offline
Опыт:
5,715Активность: |
Проблема
Собственно небольшая респаун системка....код не рбаотает как я задумывал...пасматрите плиз.
карт в аттаче код внизу » Код системы Код:
|
17.02.2007, 23:57 | #1
+0/−0
Профиль |
Приват |
Поиск |
Цитата |
IP: Записан
|
DioD
offline
Опыт:
45,134Активность: |
ибо алгоритмика на чужом коде сильно хромает. |
18.02.2007, 08:00 | #2
+0/−0
Профиль |
Приват |
Поиск |
Цитата |
IP: Записан
|
DeT
offline
Опыт:
5,715Активность: |
ща..я еще побьюсь головой...мб получится..код еще нада подправить
Развалины деревни морлоков. Некогда это поселение подавало большие надежды, все думали, что оно разрастется в большой торговый центр, однако по неизвестным причинам здесь наступил упадок.
Вы обходите руины, но никого не находите, уже собравшись уходить видите следующее: в промежутке между двумя развалившимися хижинами проходит человек с ленточками вместо головы, а за ним — еще один, точно такой же. У вас шок, до этого вы с дежавю никогда не сталкивались...
В сознание приводит хриплый голос за спиной: «Мда, сегодня мы видели Адольфов больше, чем за последние полгода...»
Вы оборачиваетесь и видите старого морлока в костюме послушника.
В результате не очень длительного разговора вы узнаете,что он видел пропавшего здесь и даже знает куда тот пошел. По его словам, Дедушка направился по кирпичной дороге к заводу, названному в честь одного из первых киборгов, но точного названия он, к сожалению не помнит. Отредактировано Hellfim, 31.12.2010 в 17:40. |
18.02.2007, 14:13 | #3
+0/−0
Профиль |
Приват |
Поиск |
Цитата |
IP: Записан
|
exAres
I love magic :)
offline
Опыт:
7,788Активность: |
1)юзай таймер с нужным количством времени а не периодический триггер который минусует время. Если ты думаешь что несколько таймеров хуже чем посекундный loop то ты сильно ошибаешся.
2)лучше юзай не локации а Х и Y или хотябы удаляй локацию. 3) Код:
Код:
ЗЫ здесь можно вообще не использовать массивы и при этом производительность только возрастёт, а ошибку щас найду... |
18.02.2007, 14:32 | #4
+0/−0
Профиль |
Приват |
Поиск |
Цитата |
IP: Записан
|
DeT
offline
Опыт:
5,715Активность: |
о_О
давай. Там не работает триггер проверки юнитов на смерть...странно.. по идее записаь типов для респауна идет но вот не колбасится проверка при мсерти. Про локации - у мну пока дебаг, оптимизацией особо не занимался. про кондишн - просто думал стоит "a" обнулять изначально был твой вариант |
18.02.2007, 14:42 | #5
+0/−0
Профиль |
Приват |
Поиск |
Цитата |
IP: Записан
|
exAres
I love magic :)
offline
Опыт:
7,788Активность: |
DeT нашёл главную ошибку : ты или записываешь не туда или читаешь не оттуда :) т.е. ты записываешь тип юнита на юнита которого создаешь при старте карты а читаешь из того который умирает, по этому Cоndition триггера который реагирует на смерть - не исполняется ! Но там и кроме этого полно багов !!!
|
18.02.2007, 15:13 | #6
+0/−0
Профиль |
Приват |
Поиск |
Цитата |
IP: Записан
|
DeT
offline
Опыт:
5,715Активность: |
понятно..баги исправим и выложим истемку дополненную :)
DeT добавил: Код:
не работает :( |
18.02.2007, 16:50 | #7
+0/−0
Профиль |
Приват |
Поиск |
Цитата |
IP: Записан
|
exAres
I love magic :)
offline
Опыт:
7,788Активность: |
может где-нить букву путаешь хз, я без полного кода ничего точно сказать не могу. |
18.02.2007, 17:12 | #8
+0/−0
Профиль |
Приват |
Поиск |
Цитата |
IP: Записан
|
DeT
offline
Опыт:
5,715Активность: |
там скобка была лишняя
вот код, посматри, там че-то с ззносом в кеш...<_< Код:
DeT добавил: решил проблему почти! |
18.02.2007, 17:24 | #9
+0/−0
Профиль |
Приват |
Поиск |
Цитата |
IP: Записан
|