Raised This Month: $51 Target: $400
 12% 

Showing results 1 to 25 of 99
Search took 0.01 seconds.
Search: Posts Made By: damage220
Forum: Scripting Help 03-25-2024, 13:11
Replies: 2
Views: 381
Posted By damage220
Re: Is there an alternative to reapi's rg_set_iteminfo?

Is Ham_Item_GetItemInfo event called during item creation process? If so, it is not what I meant. I need a function that would allow me to set iteminfo any time. I need this to add custom weapon.
Forum: Scripting Help 03-19-2024, 23:06
Replies: 2
Views: 381
Posted By damage220
Is there an alternative to reapi's rg_set_iteminfo?

I am looking for a way to change item info of weapon entity. Like the following but without reapi...
Forum: Scripting Help 02-09-2024, 22:27
Replies: 8
Views: 566
Posted By damage220
Re: How to recache spawn points?

Great thought, I can even use default spawn points only and change their origins based on the current mode. I do not know why I never thought of it. Thank you.
Forum: Scripting Help 02-08-2024, 13:13
Replies: 8
Views: 566
Posted By damage220
Re: How to recache spawn points?

If there are more players than spawn points, it is not possible to join a team. So the engine either checks the number of spawn points for a team or set a property for an entity to assign a player to...
Forum: Scripting Help 02-08-2024, 13:02
Replies: 8
Views: 566
Posted By damage220
Re: How to recache spawn points?

Unfortunately, no it does not work in 1.6, at least I do not know how to make it to work. If I remove all spawn points and add my own, I cannot even choose a team. If I were in a team the moment I...
Forum: Scripting Help 02-07-2024, 13:53
Replies: 8
Views: 566
Posted By damage220
Re: How to recache spawn points?

I think of it because I I see no reason why the engine does not utilize spawn points created in plugin_init or later. I think it is not reasonable to iterate all entities and check whether their...
Forum: Scripting Help 02-06-2024, 14:52
Replies: 8
Views: 566
Posted By damage220
How to recache spawn points?

In my FFA plugin I created a set of virtual spawn points, I mean they do not have an entity assigned to. In player spawn event I teleport the player to random virtual spawn point. It works but I am...
Forum: Scripting Help 12-03-2023, 13:44
Replies: 7
Views: 776
Posted By damage220
Re: ??? instead of Cyrillic letters on debian after SQL_SetCharset

Actually, I just realized there was no issue with setting charset. It was just the terminal that failed to display Cyrillic letters. To my shame I forgot to check them in the game in the first place.
Forum: Scripting Help 12-03-2023, 13:02
Replies: 7
Views: 776
Posted By damage220
Re: ??? instead of Cyrillic letters on debian after SQL_SetCharset

I found the reason. It is Debian that overrides default LANG variable (set in /etc/default/locale) in /root/.profile. Neither Arch Linux nor Ubuntu does this.

# Installed by Debian Installer:
# ...
Forum: Scripting Help 12-02-2023, 15:29
Replies: 7
Views: 776
Posted By damage220
Re: ??? instead of Cyrillic letters on debian after SQL_SetCharset

Could you please instruct on how to do that? Because in my /etc/locale.gen file I have uncommented these lines

en_US.UTF-8 UTF-8
ru_RU.UTF-8 UTF-8

When I enter locale-gen in the terminal, I...
Forum: Scripting Help 12-01-2023, 17:46
Replies: 7
Views: 776
Posted By damage220
Re: ??? instead of Cyrillic letters on debian after SQL_SetCharset

Then I will have to prefix each async query with "SET NAMES utf8mb4". I guess I will switch from Debian to Ubuntu and see if it fixes the problem.
Forum: Scripting Help 12-01-2023, 17:40
Replies: 9
Views: 1,214
Posted By damage220
Re: How to get coordinates of rectangle the corpse lies in?

Luckily I already have one. Thank you, works great.

engfunc(EngFunc_GetBonePosition, ent, 2, pelvis_origin, pelvis_angles);
Forum: Scripting Help 12-01-2023, 16:38
Replies: 9
Views: 1,214
Posted By damage220
Re: How to get coordinates of rectangle the corpse lies in?

Then you will be able to revive far enough from the corpse, even through the wall.
Forum: Scripting Help 11-30-2023, 16:46
Replies: 9
Views: 1,214
Posted By damage220
Re: How to get coordinates of rectangle the corpse lies in?

My final goal is to allow player to revive another player while standing on that player's corpse. Original idea was to get 4 points to form rectangle and check whether position of the rescuer is...
Forum: Scripting Help 11-30-2023, 13:30
Replies: 7
Views: 776
Posted By damage220
??? instead of Cyrillic letters on debian after SQL_SetCharset

Hello. I have following table

CREATE TABLE `users` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL,
PRIMARY KEY (`id`),
) ENGINE=InnoDB DEFAULT...
Forum: Scripting Help 11-30-2023, 12:11
Replies: 9
Views: 1,214
Posted By damage220
Re: How to get coordinates of rectangle the corpse lies in?

I do not want to rotate corpses. I need coordinates of points of corpse's box according to angle the corpse lies on the ground, like you may see on the second image. I would be also happy if someone...
Forum: Scripting Help 11-21-2023, 14:50
Replies: 15
Views: 1,278
Posted By damage220
Re: Are there transactions in sqlx?

How is it possible to prevent power loss or engineering works of your ISP?
Forum: Scripting Help 11-21-2023, 14:47
Replies: 15
Views: 1,278
Posted By damage220
Re: Are there transactions in sqlx?

You may try to use START TRANSACTION, COMMIT, and ROLLBACK SQL statements (https://dev.mysql.com/doc/refman/8.0/en/commit.html) directly. I have not tested it but it should work. At least when you...
Forum: Scripting Help 11-21-2023, 13:09
Replies: 15
Views: 1,278
Posted By damage220
Re: Are there transactions in sqlx?

Bugsy,
There are situations where you need, for example, to get primary key of the newly created row and if something goes wrong you can rollback any changes made to the database. These are called...
Forum: Scripting Help 11-20-2023, 19:07
Replies: 9
Views: 1,214
Posted By damage220
How to get coordinates of rectangle the corpse lies in?

Hi. Could someone please explain how to get coordinates of rectangle the corpse lies in? I first tried to get EV_VEC_absmin and EV_VEC_absmax but seems it gives me coordinates of alive player (see...
Forum: Scripting Help 11-09-2023, 22:54
Replies: 1
Views: 355
Posted By damage220
Re: Ham_TakeDamage duplicates event when shooting at the top of the hull

Oh, my... This is not a bug but double hit. I realized this when I added hitzone to log message. The bullet first hits chest, then it hits leg. The only confusing part here is that the damage done is...
Forum: Scripting Help 11-09-2023, 20:50
Replies: 1
Views: 355
Posted By damage220
Ham_TakeDamage duplicates event when shooting at the top of the hull

I found strange bug when you are at the top of enemy hull and are hitting the enemy, ham fires 2 events.

public plugin_init()
{
RegisterHam(Ham_TakeDamage, "player", "ham_takedamage", 1);
}...
Forum: Scripting Help 10-23-2023, 19:30
Replies: 5
Views: 674
Posted By damage220
Re: Fade screen on kill causes bug

I decided to wait until flash effect disappear. It can take long but I do not see better option. Closed.
Forum: Scripting Help 10-21-2023, 20:07
Replies: 5
Views: 674
Posted By damage220
Re: Fade screen on kill causes bug

This plugin also clears white screen caused by flash.
Forum: Scripting Help 10-20-2023, 23:07
Replies: 5
Views: 674
Posted By damage220
Fade screen on kill causes bug

I call the function to fade screen when a player kills someone.


fade_screen(c, const rgba[4])
{
message_begin(MSG_ONE_UNRELIABLE, _screen_fade_msg_id, {0, 0, 0}, c);
...
Showing results 1 to 25 of 99

 
Forum Jump

All times are GMT -4. The time now is 19:39.


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