ProjectsWhat's NewDownloadsCommunitySupportCompany
Forum Index » S.T.A.L.K.E.R.: Shadow of Chernobyl Forum » Mod discussion
ZRP and script questions

Posted by/on
Question/AnswerMake Newest Up Sort by Descending
  19:39:35  28 February 2015
profilee-mailreply Message URLTo the Top
LoneGamer88
(Novice)
 
On forum: 05/03/2014
Messages: 34
ZRP and script questions

Hi, I want to restore the complete animation of Sidor speech. In ZRP the anim cuts at mid-speech and looks bad.

I've also added the lootmoney mod, modified like this:

---QUOTATION---
function lootmoney(npc)
if npc ~= nil and not string.find(npc:section(),"arena" and npc:character_community()~="arena_enemy" then
local money = npc:money()
if money ~= nil and money ~=0 then
local deadmoney = money

local npc_rank
npc_rank = ranks.get_obj_rank_name(npc)
if npc_rank ~= nil then
if npc_rank == "novice" and deadmoney >=40 then deadmoney=math.random(10,40)
elseif npc_rank == "experienced" and deadmoney >=120 then deadmoney=math.random(40,120)
elseif npc_rank == "veteran" and deadmoney >=240 then deadmoney=math.random(80,240)
elseif npc_rank == "master" and deadmoney >=360 then deadmoney=math.random(120,360)
end
end
local news_texti = "%c[255,160,160,160]"..game.translate_string("st_lootmoney" .."\\n%c[default]"..game.translate_string(tostring(deadmoney).." RU"
db.actor:give_game_news(news_texti, "ui\\ui_iconsTotal", Frect():set(0,0,83,47), 1, 4000)
db.actor:give_money(deadmoney)
game_stats.money_quest_update(deadmoney)
npc:give_money(-money)
game_stats.money_quest_update(-money)
end
end
end
---END QUOTATION---


I want to add the typical news tip sound when the "money found" message shows, can someone tell me how to do it?

And last, I want to add the "press any button" pause after loading map, ala CS, but I don't know where to look for this one.
  22:00:16  28 February 2015
profilee-mailreply Message URLTo the Top
d4v33edz
Senior Resident
 

 
On forum: 12/10/2012
Messages: 192

---QUOTATION---
And last, I want to add the "press any button" pause after loading map, ala CS, but I don't know where to look for this one.
---END QUOTATION---




Here is a download link for the pause screen (from ap pro)

http://ap-pro.ru/load/teni_chernobylja/mody/pauza_pri_zagruzke_kak_v_zp/8-1-0-1842
  21:46:10  2 March 2015
profilee-mailreply Message URLTo the Top
LoneGamer88
(Novice)
 
On forum: 05/03/2014
 

Message edited by:
LoneGamer88
03/02/2015 21:47:00
Messages: 34

---QUOTATION---
And last, I want to add the "press any button" pause after loading map, ala CS, but I don't know where to look for this one.


Here is a download link for the pause screen (from ap pro)

http://ap-pro.ru/load/teni_chernobylja/mody/pauza_pri_zagruzke_kak_v_zp/8-1-0-1842
---END QUOTATION---


Thank you!

Can anyone help with the other 2 questions?
  03:41:18  22 April 2015
profilee-mailreply Message URLTo the Top
NatVac
Senior Resident
 

 
On forum: 06/15/2007
Messages: 4302

---QUOTATION---
Hi, I want to restore the complete animation of Sidor speech. In ZRP the anim cuts at mid-speech and looks bad.
---END QUOTATION---


Delete gamedata\config\scripts\esc_trader.ltx. This fix is already in the latest ZRP. The ability to skip the monologue is now optional.


---QUOTATION---
I want to add the typical news tip sound when the "money found" message shows, can someone tell me how to do it?
---END QUOTATION---


One of these should work for you:

news_manager.pda_news:play(db.actor, 0, sound_object.s2d)
news_manager.pda_tips:play(db.actor, 0, sound_object.s2d)
news_manager.pda_task:play(db.actor, 0, sound_object.s2d)
 
Each word should be at least 3 characters long.
Search:    
Search conditions:    - spaces as AND    - spaces as OR   
 
Forum Index » S.T.A.L.K.E.R.: Shadow of Chernobyl Forum » Mod discussion
 

All short dates are in Month-Day-Year format.


 

Copyright © 1995-2022 GSC Game World. All rights reserved.
This site is best viewed in Internet Explorer 4.xx and up and Javascript enabled. Webmaster.
Opera Software products are not supported.
If any problem concerning the site functioning under Opera Software appears apply
to Opera Software technical support service.