Page 1 of 1

character help

Posted: April 16th, 2010, 9:18 am
by THEAZNOrigin
Does anybody know how to change the speed on a character?

Re: sandbox

Posted: April 16th, 2010, 9:22 am
by Obsidian
Topic moved
Reason: Moved to Support


Also, hi there.

Please change your topic's title via the "edit post" function to more accurately describe your problem.
If you cannot do this, your topic may be locked for not obeying this rule.

Thanks.

Re: sandbox

Posted: April 16th, 2010, 9:36 am
by Leo_V117
Yeah. Depending on the game mode. Lets take RPG.

Code: Select all

spawn_robe = [
	r_type $ENT_ITEM
	r_name "Assassins Cloak"
	r_icon shieldblue
	r_description "A regular cloak that reduces sound but increases movement"
	r_item_slots $SLOT_TORSO

	r_addowneffect $STATUS_STRENGTH +30
	r_addowneffect $STATUS_MOVE +30
	r_addowneffect $STATUS_AGILITY +30

	r_interact [
		r_select $rpginteract
		r_pickup $rpgself
	]
]
Take note of this part:

Code: Select all

	r_addowneffect $STATUS_STRENGTH +30
	r_addowneffect $STATUS_MOVE +30
	r_addowneffect $STATUS_AGILITY +30
These 3 Effects are what change certain stats on the character. But ONLY when the item is equipped.

Code: Select all

	r_addowneffect $STATUS_MOVE +30
That part will change the movespeed of the character. Obviously you can change the number to something that suits you. Although, I would advise keeping it between -10 and 50. Just to avoid any problems

Code: Select all

	r_addowneffect $STATUS_STRENGTH +30
That part increases the players strength. As with the movespeed you can change it. Again, Make sure its between 10 and 75. Again to avoid problems.

Code: Select all

	r_addowneffect $STATUS_AGILITY +30
This part Increases the jump height, atleast, it looked like it did when I tested it. As with the movespeed and strength you can change it. Again, Make sure its between 10 and 50. Just to avoid problems later on.

Hope this helps.

- Leo